How long (max characters) can a datastore entity key_name be? Is it bad to haver very long key_names

Posted by indiehacker on Stack Overflow See other posts from Stack Overflow or by indiehacker
Published on 2010-04-01T01:30:55Z Indexed on 2010/04/01 1:33 UTC
Read the original article Hit count: 344

What is the maximum number of characters that can be used to define the key_name of a datastore entity?

Is it bad to have very long key_names?

For example: Lets say we use key_names of a 170 characters, which is the length of a Twitter message 140 plus 10 numeric characters for latitude and 10 for longtitude and 10 for a timestamp.

(Reasoning of such a key_name: So by using such a key_name we can easily and quickly be sure of no duplicate postings, since the same message should not come from the same place and time more than once.)

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about google-datastore