Can any one point for the best practice with regards to the DB ? Adding some kind of fields to my data models is possible in order to be able to know what data belongs where.
But it seems to me that the more data you have on that single application the more queries will be inefficient. Cause if I have stored 40000 objects in my DB and one user has only 500 objects in the DB , I will need to go over all the 40,000 objects to find His data ? is that correct ? Would it be more correct to upload several instances of the application ? one for each user ? Eddie. From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On Behalf Of Nick Johnson (Google) Sent: Wednesday, June 17, 2009 12:01 PM To: google-appengine@googlegroups.com Subject: [google-appengine] Re: DataBase in GoogleApp Hi Thegremlin, On Wed, Jun 17, 2009 at 10:12 AM, Thegremlin <eddie.har...@gmail.com> wrote: Hello all , I am trying to get started with GoogleApp and i am reading as much as i can about it. I have a few questions about it. 1. I understood that the DB is not a treditional DB. In the example (shoutout) they show how to store and get data from the DB, however what if i need to store different data in different DB's ? Only one datastore is available per application. You can shard your data by adding fields to your models, and querying based on them. Lets take for example an application that handles expences of a "any" google user. user "A" uses it and then comes user "B" and user "C" etc... after while user "A" loggs in again and wants to get his data, this means i need to go over all the data in the data store in order to see wich records are user "A" records ... is there a way to open a "DB" for a user ... so when the user runs this application system will only "know" user "A" data ? 2. I dont come from "webapp" programming background, and i find the tutorials and docs very very hard to understand, are there any other resources ? You may like http://www.appenginelearn.com/. The author, Charles Severance, has recently published a very good book based on this content, called Using Google App Engine. -Nick Johnson thanks , -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---