Hi all,
  I opened a PR to add the insertTablets interface for Table Session-Java
  https://github.com/apache/iotdb/pull/18132
  This PR mainly improves the insertTablets path for relational tablets. The 
key changes include:
  - Add a switch to enable or disable relational tablet merging.
  - Reuse columnIndexMap between merge eligibility checks and the actual merge 
process.
  - Avoid unnecessary bitmap creation during tablet merging.
  - Use column-wise System.arraycopy for batch data copying.
  - Automatically disable tablet merging when it is not beneficial:
      - Disable after 10 consecutive merge attempts that do not actually merge 
any tablets.
      - Disable if, after 10 calls, the accumulated merge cost is greater than 
half of the accumulated insert cost.
  - Add an ignored integration test for manually comparing insertTablet and 
insertTablets performance as the number of tablets for the same table increases.
  The performance comparison IT is marked with @Ignore, so it will not run in 
regular CI. It can be enabled manually when we need to compare the behavior of 
insertTablet and insertTablets.
  I have run the related unit tests and integration-test compilation locally. I 
also manually ran the performance comparison IT before marking it ignored, and 
it passed.
Best regards,
Tian Jiang

Reply via email to