User Specific DB

29 views
Skip to first unread message

pete7373

unread,
Jan 29, 2012, 3:37:54 AM1/29/12
to google-a...@googlegroups.com
I would like each user of my application to have their own separate DB instance.  This is because each user comes from different business and so I don't want any risk of user A seeing data from user B (which could happen if query forgot to say where owningUser = 'xyz'.  Also, if all businesses share same datastore, the tables will get very big which may slow things down.

So, do I need to register multilple app instances?

I kind of want one app instance, but multilpe data stores, is this possible?


Amy Unruh

unread,
Jan 29, 2012, 3:32:39 PM1/29/12
to google-a...@googlegroups.com
hi,

You can use namespaces to support multitenancy -- see this page for more information: http://code.google.com/appengine/docs/python/multitenancy/overview.html



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/2b98TZXJJzwJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Jeff Schnitzer

unread,
Jan 29, 2012, 5:06:42 PM1/29/12
to google-a...@googlegroups.com
On Sun, Jan 29, 2012 at 3:37 AM, pete7373 <ben.d...@gmail.com> wrote:
> Also, if all businesses share
> same datastore, the tables will get very big which may slow things down.

FYI, this is not an issue with the GAE datastore. Your data already
lives in a very, very large table along with terabytes (petabytes?) of
other people's data. A "BigTable".

Jeff

Reply all
Reply to author
Forward
0 new messages