Ryan,

These 2 statements appear to contradict:

"...in practice, every id-based root entity has an id
that's across all other root entities..."

"...bare ids or key names are generally only
interesting or useful when the rest of the path is held constant,
including the kind of the entity in question. that's the only way to
guarantee the key names or ids will be unique"

The first statement says, in practice, the id alone is unique across
kinds for root-entities, the second statement says the kind+id is
needed for uniqueness across root-entities.  Could you please clarify?

When you say 'in practice' does that mean, in the current
implementation, all root entities regardless of kind each will have a
unique id, but that it is not guaranteed in the future?

Robin



On Jan 5, 7:23 pm, Andy Freeman <[email protected]> wrote:
> I think that this "idcounts for an entity-group namespace live
> forever" property should be documented because I suspect that many
> uses of entity-groups will involve single-use names.
>
> The only reason that I'm not running into it is that I prematurely
> optimized to a single db.put, which forced me to use explicit key_name
> s.  If I'd gone with multiple db.put s in a transaction, which would
> have been somewhat simpler, I'd have let the system assign ids within
> my "use once" entity-groups.
>
> Of course, someone will want a way to purge these counts.
>
> On Jan 4, 11:37 pm, ryan <[email protected]> wrote:
>
> > On Dec 31 2008, 6:49 am, Andy Freeman <[email protected]> wrote:
> > > If I never allocate ids within a given entity-group namespace, does
> > > anything for that namespace live forever (after all entities in said
> > > group have been deleted)?
> > ...
> > > The total number of such groups that have entities at any given time
> > > is fairly modest, but the total number that has existed over the life
> > > of the application can be fairly large.  Thus, if any information
> > > about these groups "live[s] forever", I may have a problem.
>
> > ah, i understand the motivation now. if you never create anyid-based
> > entities, then no, there's nothing in the entity group that lives
> > forever.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to