You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Yuan Tian (Jira)" <ji...@apache.org> on 2021/12/03 08:40:00 UTC
[jira] [Created] (IOTDB-2102) Push limit operator down to each reader
Yuan Tian created IOTDB-2102:
--------------------------------
Summary: Push limit operator down to each reader
Key: IOTDB-2102
URL: https://issues.apache.org/jira/browse/IOTDB-2102
Project: Apache IoTDB
Issue Type: Improvement
Components: Core/Query
Reporter: Yuan Tian
Assignee: Alima777
Currently, limit operator only take effect in main thread of raw query without value filter which is responsible for contructing data set. When the main thread find the current row records has already exceed the limit number, it will return the result set to client and then exit. However, the each reader is running in another async threads, we may continue reading data until the blcoking queue is full.
So, we need to pass the limit parameter to each reader, and if the reader find that it already return enough data, it will stop reading and exit.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)