thulab / iot-benchmark

IoT-benchmark is a tool for benchmarking TSDB in IoT scenario.
Apache License 2.0
180 stars 101 forks source link

Multiple device batch for IoTDBSession 0.13 #338

Closed liyuheng55555 closed 1 year ago

liyuheng55555 commented 1 year ago

Main changes:

  1. Add a configuration item called DEVICE_NUM_PER_WRITE to specify the of devices allowed in a batch.
  2. Add a new interface called IBatch to replace the original Batch.
  3. Implement a new class called MultiDeviceBatch that implements the IBatch interface.
  4. Add logic to generate MultiDeviceBatch.
  5. Implement write operations to MultiDeviceBatch in the IoTDBSession class (now only 0.13).