开发者

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 longs, 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜