Datastore query with limit
<p>I'm using the RemoteAPI (Java) to go through a large dataset, ~90K entities, and perform some data migration.</p>

<pre><code>int CHUNK_SIZE = 500;
int LIMIT = 900; 

QueryResultList&lt;Entity&gt; result = ds.prepare(entityQuery)
.asQueryResultList(
    FetchOptions.Builder
    .withPrefetchSize(CHUNK_SIZE)
    .limit(LIMIT)
    .chunkSize(CHUNK_SIZE)
).startCursor(cursor);
</code></pre>

<p>With the query <code>LIMIT</code> set to <code>900</code>the <code>result.size()</code> is the entire dataset, ~90K, instead of <code>900</code>. If I try a lower <code>LIMIT</code>, say <code>300</code>, the result size is the expected one (<code>300</code>).</p>

<p>What am I missing here? From the documentation I couldn't figure out why it produces the behaviour I'm describing here.</p>