|View source on GitHub|
Allocates a range of IDs with specific endpoints.
google.appengine.ext.db.allocate_id_range( model, start, end, **kwargs )
Once these IDs have been allocated they may be provided manually to newly created entities.
Since the datastore's automatic
ID allocator will never assign
a key to a new entity that will cause an existing entity to be
overwritten, entities written to the given key range will never be
overwritten. However, writing entities with manually assigned keys in this
range may overwrite existing entities (or new entities written by a
separate request) depending on the key range state returned.
This method should only be used if you have an existing numeric id range that you want to reserve, e.g. bulk loading entities that already have IDs. If you don't care about which IDs you receive, use allocate_ids instead.
||first id of the range to allocate, inclusive.|
||last id of the range to allocate, inclusive.|