You are not required to actually use the ids returned by allocate_ids
- once the function returns, you are guaranteed that the datastore
will not assign those ids.

On Oct 28, 11:18 pm, 风笑雪 <kea...@gmail.com> wrote:
> I found 
> this:http://code.google.com/intl/en/appengine/docs/revision_history.html
>
> 2010-04-21
> The datastore now supports pre-allocating system IDs in
> application-defined ranges. This is useful for preserving system IDs
> when importing entities exported from another app.
>
> So I think whenever you put an entity into datastore without specify
> an id, datastore will generate a one not exist before. But when you
> import a large number of entities, maybe you want to make sure at the
> same time, datastore won't generate an entity id the same as you
> imported, otherwise you may overwrite it by yourself.
>
> ----------
> keakon
>
>
>
>
>
>
>
> On Fri, Oct 29, 2010 at 5:41 AM, vivpuri <v...@vivekpuri.com> wrote:
> > I am having an issue with allocate_ids(model_key, count) -
> >http://code.google.com/appengine/docs/python/datastore/functions.html
> > - on localhost. My understanding of this function is that IDs
> > allocated via this function call for a kind, will not be generated
> > again. Is there a requirement to use ids generated by this function
> > call in Keys to ensure that they will not be issued again?
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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