Hi 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. objects = g.Get(fetch_size) nfetched += len(objects) It really won't make any difference to the performance. Rgds T On Oct 12, 6:26 am, Darshan Shaligram <scinti...@gmail.com> wrote: > On Mon, Oct 11, 2010 at 5:18 PM, Eli Jones <eli.jo...@gmail.com> 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 google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.