Reputation: 9538
What exactly is google app engine's key class? I'm looking at the documentation but it's not really helping. (Python)
Upvotes: 2
Views: 360
Reputation: 8292
Every entity has either an integer id or a name (string) that uniquely identifies it. The key is made up of four basic parts: your app id, the namespace, the kind name, and the integer id or name. If an entity is a child entity (ie a member of an entity group) the key also contains the parent's kind and id / name.
So a key looks something like this: AppId:Namespace:[parent Kind:id|name:]Kind:id|name
Keys are discussed in the context of entity groups, and there is a description in the article about how entities are stored.
Upvotes: 2