On Saturday, February 23, 2013 2:46:55 PM UTC-7, GAEfan wrote: > Has anyone run any speed tests for querying different model types (ndb, > db, django.db)? >
> I like NDB, but am considering using Django (non-rel) for a new app. > Django models and queries would be most transportable, but I do not want > to sacrifice query speed. Are there drawbacks to using Django's models in > this environment? > I use django non-rel for my GAE app (I'm a committer on the project). I have not done any performance comparisons, but I don't think there would be any significant differences. django non-rel basically rewrites the django queries into native GAE queries. So there would be some CPU overhead there, and also some to convert the results into django model objects, but insignificant compared to the query time. The biggest drawback from using django non-rel is that you can't use async RPC calls which can make a big difference if you're doing a lot of calls in a request. ndb also has memcache builtin which is nice. You can use memcache with django but most of the libraries which do this transparently are not designed with eventual consistency issues in mind. --Alex -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
