alternative to GAE Keys for mySQL?
wondering if the GAE keys (com.google.appengine.api.datastore.Key) can be used with local mysql apps? I presume it's not possible, so if I define my primary keys in my models as long
s, do I lose too much of the key functionality, like the KeyService
and querying using keys ?
Thank开发者_运维技巧s
No, you do not lose functionality. You can still query using the long keys and the performance is the same.
The 'Key' datastore type allows you to create keys based on a string. For example, you might want to create the key based on the user's email address. You won't be able to have this functionality with long keys.
But in most cases you do not need this option.
精彩评论