Closed GoogleCodeExporter closed 9 years ago
I looked into this and concluded:
1) The code is correctly calling the right SDK methods
2) The allocator is allocating numbers irrespective of namespace
This shouldn't actually be unexpected. GAE guarantees that allocation of ids
in a namespace will prevent those ids from being reused, but nowhere does it
guarantee that ids are allocated contiguously within a namespace. My guess is
that the development environment simply uses a single unsharded counter for all
namespaces; it meets the requirements even if it doesn't produce "pretty" ids.
I don't know offhand if GAE production follows this same shortcut approach; I
suspect not, but experiment and let us know.
Original comment by lhori...@gmail.com
on 30 Jun 2010 at 2:30
Original issue reported on code.google.com by
btoc...@gmail.com
on 25 Jun 2010 at 3:44Attachments: