Skip to content

Optimized the overall performance of IoTDB#17664

Open
Caideyipi wants to merge 7 commits into
masterfrom
performance
Open

Optimized the overall performance of IoTDB#17664
Caideyipi wants to merge 7 commits into
masterfrom
performance

Conversation

@Caideyipi
Copy link
Copy Markdown
Collaborator

@Caideyipi Caideyipi commented May 14, 2026

Description

  1. Removed the unnecessary copies in QueryDataSetUtils & PartialPath.
  2. Cached the deletion ranges to speedup the mod checks
  3. Removed some unnecessary copies for partial paths
  4. Removed some boxings on hot paths
  5. Optimized some data structures (List::contains -> Set::contains, LinkedList -> ArrayList)

This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

@Caideyipi Caideyipi changed the title Optimized the overall performance of Io Optimized the overall performance of IoTDB May 14, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 52.76596% with 111 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.55%. Comparing base (402e399) to head (bbfcbb1).
⚠️ Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
...read/filescan/impl/UnclosedFileScanHandleImpl.java 0.00% 38 Missing ⚠️
...in/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java 0.00% 19 Missing ⚠️
...java/org/apache/iotdb/isession/SessionDataSet.java 0.00% 12 Missing ⚠️
...n/read/filescan/impl/ClosedFileScanHandleImpl.java 0.00% 9 Missing ⚠️
.../apache/iotdb/rpc/stmt/PreparedParameterSerde.java 12.50% 7 Missing ⚠️
...a/org/apache/iotdb/db/utils/QueryDataSetUtils.java 63.15% 7 Missing ⚠️
...rc/main/java/org/apache/iotdb/session/Session.java 92.30% 5 Missing ⚠️
...org/apache/iotdb/db/schemaengine/SchemaEngine.java 0.00% 4 Missing ⚠️
...g/apache/iotdb/db/storageengine/StorageEngine.java 33.33% 4 Missing ⚠️
...metadata/fetcher/cache/TableDeviceSchemaCache.java 0.00% 3 Missing ⚠️
... and 2 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17664      +/-   ##
============================================
+ Coverage     40.26%   40.55%   +0.28%     
  Complexity     2574     2574              
============================================
  Files          5179     5179              
  Lines        349659   349913     +254     
  Branches      44688    44726      +38     
============================================
+ Hits         140798   141898    +1100     
+ Misses       208861   208015     -846     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants