Alima777 opened a new pull request #4534:
URL: https://github.com/apache/iotdb/pull/4534


   If we use limit 1 while select ** from root, the sub thread is not noticed 
that we only need one result, so it works until the blockingQueue is filled, 
which wastes lots of resource.
   Therefore, we push down limit to ReadTask in RawDataSetWithoutValueFilter.
   
   If rowLimit/rowOffset exists, fetchLimit = rowLimit + rowOffset, Otherwise 
Integer.Max
   It is only used when the readTask is initialized first time, to avoid read 
too much batchData
   If fetchLimit is still not satisfied when blockingQueue is filled, we don't 
use it again when the readTask is initialized again in fillCache() because it's 
can be controlled in queryDataSet now without reading too much data and 
fetchLimit is not easy to calculated when batchData is returned but not merged 
among series.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to