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

new session API for insertRecords that belong to the same device

    XMLWordPrintableJSON

Details

    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:

      1. java API implementation
      2. another API that users may do not know the value type. 
      3. Python API
      4. Go API

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hxd Xiangdong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: