In case someone needs to automate a conversion, the services /decode and 
/encode (used by the page as ajax calls) return JSON data.

Although in order to process hundreds of keys in a batch, remote services 
calls + JSON decoding might not be the most practical solution, so I plan 
to release a command-line tool for decoding, encoding and conversion.

On Wednesday, July 30, 2014 1:41:58 PM UTC+2, dele...@gmail.com wrote:
>
> Hello
> Having used the AppEngine services for a few months, I experienced the 
> following facts concerning the NoSQL Datastore primary keys :
> - the exact nature of a Key is not obvious to everyone (although 
> documented in each language-specific online doc).
> - the creation/modification of a Key is not trivial when it comes to 
> AppIds and Namespaces, depending on what is exposed or not in each 
> language-specific API.
>
> FWIW, I've deployed the following page to help data extracting from, or 
> encoding to a Key : http://datastore-key.appspot.com/
> Example : 
> http://datastore-key.appspot.com/?keystring=ag9zfmRhdGFzdG9yZS1rZXlyNQsSEk15UGFyZW50RW50aXR5VHlwZSIIZXVyb3BlLTQMCxIPTXlTdWJFbnRpdHlUeXBlGCoM
>
> It answers to two questions for debug and understanding purpose :
> - "What entity is refered to by this huge string dangling in my 
> querystring/json/logs/hardcoded constants ?"
> - "What would be the string representation of a key of an entity in my 
> application with specific id ?"
>
> The keys themselves are luckily language-independent, like all the 
> Datastore content and the admin console pages.
> This online tool also provides nice links to the Datastore Viewer, and two 
> browser search engines taking a Key string as search term.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to