All the info regarding these two sums up to:
Sets the chunk size. Please read the class javadoc for an explanation of how chunk size is used.
Sets the number of entities to prefetch.
Tried looking at the java docs, and at the source code in the SVN. No info at all! I mean, info regarding the actual implication of these two.
Well, prefetchSize is more or less clear - how many entities are fetched when running th query.
If my understanding is right, for example if I set the query's limit to 1000 and prefetchSize to 1000, it will read them all at once to the memory.
What about chunkSize? Is this in bytes size? Entities amount?
What are the effects of low/high number, set to these two?
The top of the page you linked to says:
chunkSize
's description is a bit vague, admittedly. It specifies the number of results to fetch on subsequent datastore requests (after the firstprefetchSize
results have been consumed).