You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "Tian Jiang (Jira)" <ji...@apache.org> on 2020/02/25 03:19:00 UTC

[jira] [Created] (IOTDB-520) Result of IBatchReader should not cross partition

Tian Jiang created IOTDB-520:
--------------------------------

             Summary: Result of IBatchReader should not cross partition
                 Key: IOTDB-520
                 URL: https://issues.apache.org/jira/browse/IOTDB-520
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Tian Jiang
             Fix For: master branch


Situation:
Assuming daily partitioning.
Node A manages the data of Day1,3,5 and Node B manages the data of Day2,4. In the current implementation, when the coordinator node fetches a batch from Node A, the batch may contain data of Day1,3 and the batch from Node B contains data of Day2. As a result, the coordinator node must merge the two batches to retain an ordered batch.

But if the batches never cross the partition border, the coordinator node will be able to just return the batches without merging using a heap comparing the first element of each batch, which could reduce the merging overheads. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)