Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1163

Optimize the insertion speed of insertRecords interface in Session

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 0.12.0
    • None

    Description

      At present, the insertRecords interface generates an InsertRowPlan for each record of data. In this way, a raft log will be generated in the cluster version. Because every raft log will be locked, it will bring a lot of overhead.

      At the same time, if some records belong to the same raft replication group, they can be sent to other nodes of this raft group as a raft log, which will reduce the transmission of RPC.

      For example, 10 records belong to the same raft replication group. If the 10 records are regarded as a raft log, one node needs one RPC. If each log is regarded as a raft log, it needs 10 RPCs.

       

      And we use iotdb-benchmark to test the insertRecords interface, we can see that, after optimization, the performance is improved by 13 times.

      Attachments

        1. image-2021-02-20-12-00-14-296.png
          61 kB
          Houliang Qi
        2. image-2021-02-20-12-07-05-448.png
          62 kB
          Houliang Qi

        Issue Links

          Activity

            People

              houliang Houliang Qi
              houliang Houliang Qi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: