On Wed, May 13, 2009 at 12:47 PM, 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?

That's correct, as long as you also know the entity type and any
ancestors' keys.

-Nick Johnson

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to