You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xiangdong Huang (Jira)" <ji...@apache.org> on 2020/12/24 17:46:00 UTC

[jira] [Created] (IOTDB-1077) new session API for insertRecords that belong to the same device

Xiangdong Huang created IOTDB-1077:
--------------------------------------

             Summary: new session API for insertRecords that belong to the same device
                 Key: IOTDB-1077
                 URL: https://issues.apache.org/jira/browse/IOTDB-1077
             Project: Apache IoTDB
          Issue Type: Task
          Components: Client/Java
            Reporter: Xiangdong Huang


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

 

 

 



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