Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Resolved
-
None
-
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
Attachments
Issue Links
- is related to
-
IOTDB-1099 Optimize insertablets logic in cluster module
- Closed
- links to