Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Sometimes, user may call `insertRecords()` to write data in batch, while all the records belong to the same device.
However, IoTDB server will consider these records without any relation. As a result, the server will contend the write lock for each record, which is time consuming.
Therefore, I come up with a new API, insertRecordsOfOneDevice, that write data that belong the the same device in batch.
API:
public void insertRecordsOfOneDevice(String deviceId, List<Long> times,
List<List<String>> measurementsList, List<List<TSDataType>> typesList,
List<List<Object>> valuesList)
Tasks:
- java API implementation
- another API that users may do not know the value type.
- Python API
- Go API
Attachments
Issue Links
- is related to
-
IOTDB-924 Support insert multi rows in one insert sentence
- Closed
- links to