Hi Samus_,
That's correct.
-Nick Johnson
On Sun, Jul 5, 2009 at 5:47 PM, Samus_mail2sa...@gmail.com wrote:
Hi Nick, thanks for your reply! yes indeed a numeric id would be more
readable so, just to be clear and for future reference, your
suggestion is to use entity.key().id() to construct
The reason I'm asking is, I want to do a random query. I want to
select a random entity from an entity group. I thought if the key is
distributed like this, then I could generate a random string like it
myself, and simply query for the first result bigger than this. Is
this viable?
Google
Hi Nick, thanks for your reply! yes indeed a numeric id would be more
readable so, just to be clear and for future reference, your
suggestion is to use entity.key().id() to construct the url and
Model.get_by_id() to retireve the entity right?
On Jul 3, 6:25 am, Nick Johnson (Google)
Hi Samus,
On Fri, Jul 3, 2009 at 5:29 AM, Samus_mail2sa...@gmail.com wrote:
actually, the first thing that came to mind for this was to use it as
part of a url to access specific entities since the reference says
it's url-safe:
actually, the first thing that came to mind for this was to use it as
part of a url to access specific entities since the reference says
it's url-safe:
http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key
and also the same idea is shown on this example:
Nick,
can we consider what you write below to be part of the API or an
internal implementation detail we whould not be relying on?
Thanks
In the case of 'stringified' keys, what you are seeing is the base64
encoding of the protocol buffer containing the key. You can verify this by
going to
Hi Oliver,
On Sat, Jun 13, 2009 at 12:26 AM, Oliver Zheng goo...@oliverzheng.comwrote:
I forgot to include this question:
What is the overhead of querying like this for just the first result,
vs just getting with the key? What is the magnitude of difference in
time?
A get operation takes
I forgot to include this question:
What is the overhead of querying like this for just the first result,
vs just getting with the key? What is the magnitude of difference in
time?
On Jun 12, 4:22 pm, Oliver Zheng goo...@oliverzheng.com wrote:
Is it a hash function in that the resulting string