Skip to content

Conversation

@shuwenwei
Copy link
Member

@shuwenwei shuwenwei commented Dec 9, 2025

Description

Optimize memtable region scan

Test

300W rows in writableMemChunk. Call writableMemChunk.getAnySatisfiedTimestamp for 10 times and print the cost
before this optimization:
img_v3_02sq_4503e0af-f6a5-4c54-aac1-952026d4a7eg
the slowest case(The condition is met only in the last row of the tvlist) after this optimization:
img_v3_02sq_9e319061-e816-43a5-9098-7b42963394cg

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 92.70833% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.93%. Comparing base (0bb9e96) to head (92f4941).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...geengine/dataregion/memtable/AbstractMemTable.java 81.48% 5 Missing ⚠️
.../iotdb/db/storageengine/dataregion/DataRegion.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #16883      +/-   ##
============================================
+ Coverage     38.87%   38.93%   +0.06%     
  Complexity      207      207              
============================================
  Files          5022     5035      +13     
  Lines        333113   334139    +1026     
  Branches      42390    42540     +150     
============================================
+ Hits         129487   130104     +617     
- Misses       203626   204035     +409     

☔ 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

sonarqubecloud bot commented Dec 9, 2025

@JackieTien97 JackieTien97 merged commit a899c48 into master Dec 9, 2025
31 of 32 checks passed
@JackieTien97 JackieTien97 deleted the optimizeMemTableRegionScan branch December 9, 2025 11:10
shuwenwei added a commit that referenced this pull request Dec 10, 2025
JackieTien97 pushed a commit that referenced this pull request Dec 10, 2025
JackieTien97 pushed a commit that referenced this pull request Dec 11, 2025
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