You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Haonan Hou (Jira)" <ji...@apache.org> on 2021/09/23 07:11:00 UTC

[jira] [Commented] (IOTDB-1725) Sort data point when inserting

    [ https://issues.apache.org/jira/browse/IOTDB-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418982#comment-17418982 ] 

Haonan Hou commented on IOTDB-1725:
-----------------------------------

Is it possible to implement a dynamic strategy?

If insert more frequently, we can keep the current logic. Otherwise, use the solution you mentioned. 

> Sort data point when inserting
> ------------------------------
>
>                 Key: IOTDB-1725
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1725
>             Project: Apache IoTDB
>          Issue Type: Task
>          Components: Core/Engine
>            Reporter: Jialin Qiao
>            Priority: Major
>
> Currently, the data is appended in TVList in memtable. When flushing the memtable to disk, we sorted the TVList by time.
> However, this means that each query needs to sort the TVList.
> That is: 1 * write + N * query + N * sort
>  
> Another way is sorting when inserting.
> That is 1 * write + 1 * sort + N * query
> This issue is to try this solution.



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