Thank you, Dave. So the only way is to define models instead of standard properties.
On May 21, 3:41 pm, David Symonds <[email protected]> wrote: > 2009/5/21 keakon <[email protected]>: > > > Anyone knows how to define unique constraint in datastore? > > You can't. As you alluded to, key_name is the usual substitute. It's > not scalable to enforce any kind of uniqueness constraint in a > distributed system unless your sharding function involves the aspect > you require to be unique, which is why key_name works. > > Dave. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
