--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
The performance of the high-level db api is pretty similar to the
performance of the low-level datastore API. I used the low-level api
so that I could keep the code reasonably similar for both Python and
Java. I'm much less familiar with the Java datastore API and I didn't
want to use Java layers that might muddy the waters performance-wise.
Having used the low-level api for Java, I used the closest
corresponding apis for Python.
The reason I wrote these simple Python and Java projects was to
investigate datastore query performance issues I had in real Python
code (using google.appengine.ext.db), and comparing notes with a
colleague who was familiar with Java datastore performance.
> Also, are you doing these tests on Appengine or in the Dev_appserver?
These tests are on the appengine, not the dev server. I use the same
application name for both Java and Python versions, and different
versions for both (Java = v1, Python = v2) so that they share the same
datastore.
> I know this is a nit, but with the python version, is there any
> particular reason why you are doing
> objects = list(q.Get(fetch_size))
> nfetched += len(objects)
> at line 108 in test_load_query.py
> the list() is redundant, the result from Get is for all purposes is a
> list or at least exceedingly list like that you wouldn't bother
> creating another list from it.
You're right, that was unnecessary, removed.
[...]
> It really won't make any difference to the performance.
Yes, confirmed. :-)