In this particular database I always advise to use the full path, or Key
, to reference entities, because the id
could be repeated across entity groups; very simple example:
Key('user', 1, 'post', 1)
Key('user', 2, 'post', 1)
This is perfectly valid, and if you only store the post id then there's no way to know to which user the entity belongs to.
And as @tx802 mentions development is easier overall, as entities can be fetched directly; even as you move them back and forth between client and server, there's no need to be recreating them.
The only downside may be storage/bandwidth increases, but that's only a problem when you are handling "big data", and even then it's unlikely to be an important issue.