Yes. See the Model functions that are available: http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_by_key_name http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html
- Jason On Wed, May 13, 2009 at 4:47 AM, Big Stu <stu.dohe...@gmail.com> wrote: > > > When you create entities, you have the option of specifying a unique key > > name that you can use to reference these entities directly (e.g. > retrieving > > entities without queries, thereby improving the performance of your > > application). > > I'm not sure what you mean by this. Are you saying if I know enough > to reconstruct the full key name of an instance I want to retrieve I > can instantiate the model with that key name and then start using it > directly? In other words, I know that when I create these instances I > use "some_string" + "owner model name" + "something else" as the key > name, so if I'm in some other situation where I know all those values > I can easily rebuild the key name and start using the model without > having to run a query on the datastore? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---