Re: [appengine-java] Batch load from DataStore?

2010-02-22 Thread Diego Osse Fernandes
Why you interate the results? 2010/2/21 Ftaylor finbarrtay...@googlemail.com Is this the fastest way to load all of the Elements of a given type from the DataStore? @SuppressWarnings(unchecked) public static final ListPage loadAllPagesFromDataStore() { ListPage

Re: [appengine-java] Batch load from DataStore?

2010-02-22 Thread John Patterson
You can set the chunk size to 100 or use one of the non iterator query methods. By default only 20 results are loaded at a time so for 100 results the iterator does 5 queries. On 22 Feb 2010, at 02:23, Ftaylor wrote: Is this the fastest way to load all of the Elements of a given type from

[appengine-java] Batch load from DataStore?

2010-02-21 Thread Ftaylor
Is this the fastest way to load all of the Elements of a given type from the DataStore? @SuppressWarnings(unchecked) public static final ListPage loadAllPagesFromDataStore() { ListPage pages = new ArrayListPage(); PersistenceManager pm =