On Mon, Oct 11, 2010 at 5:18 PM, Eli Jones <[email protected]> wrote: > Well.. for one.. you are doing a datastore.query() instead of a db.query() > Most all documentation on working with the datastore indicates to use db > from google.appengine.ext instead of datastore from google.appengine.api. > Maybe there is a difference in how they perform in this context?
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. -- 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.
