Ruka hadi kwenye ujumbe wa kwanza ambao haujasomwa
Posey
hayajasomwa,
23 Mac 2012, 18:16:0223/03/2012
Mjibu mchapishaji
Sign in to reply to author
Sambaza
Sign in to forward
Futa
Huna ruhusa ya kufuta ujumbe kwenye kikundi hiki
Nakili kiungo
Ripoti kuwa ujumbe huu una matumizi mabaya
Sign in to report message
Onyesha ujumbe wa asili
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
kwa appengine-ndb-discuss
My current application is using a high replication datastore and the
GAE data store APIs.
I wanted to add caching to this datastore. For this reason I am
considering changing my models to inherit from ndb.Model instead of
db.Model.
Will the ndb.Model class be able to communicate with my datastore,
which currently contains entities that were put there using db.Model?
Or do I need to do some migration from the db.Model entities to
ndb.Model entities? Are they stored differently in the data store?
Thanks.
Guido van Rossum
hayajasomwa,
23 Mac 2012, 19:27:0823/03/2012
Mjibu mchapishaji
Sign in to reply to author
Sambaza
Sign in to forward
Futa
Huna ruhusa ya kufuta ujumbe kwenye kikundi hiki
Nakili kiungo
Ripoti kuwa ujumbe huu una matumizi mabaya
Sign in to report message
Onyesha ujumbe wa asili
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
kwa appengine-...@googlegroups.com
The representation of your entities in the datastore does not change when you switch your model from db to ndb. You could even have two versions of the app, one using db and one using ndb, reading and writing the same entities in the datastore. For a quick guide on translating db apps to ndb, please study this "cheat sheet": https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/edit?ndplr=1&pli=1