views:

26

answers:

1

Hi all,

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 ?

Thanks

+1  A: 

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.

Hrishi
Thanks for the answer!
manojo