Skip to content

Batch Bloom filter probes for aligned metadata cache misses - #19509

Open
ColinLeeo wants to merge 2 commits into
apache:masterfrom
ColinLeeo:perf/batch-bloom-metadata-cache
Open

ColinLeeo wants to merge 2 commits into
apache:masterfrom
ColinLeeo:perf/batch-bloom-metadata-cache

Conversation

@ColinLeeo

Copy link
Copy Markdown
Collaborator

Summary

Use TsFile's batch Bloom filter API for aligned metadata cache misses. This builds on the selective metadata read in IoTDB #19198 and pins the dated snapshot containing TsFile #1143.

The time-column check can still rule out a device before looking up its value columns. Both ordinary aligned scans and external TsFile scans submit the remaining value columns in one batch per file. An ordered list maps the returned bits back to the requested names. Only the possible matches reach the metadata reader.

Example

Suppose an aligned query requests temperature and pressure on a cold cache. The file contains temperature, and its Bloom filter rules out pressure. Previously IoTDB probed the two full paths individually after the time-column check. It now makes one batch call with both names. The reader loads the time column and temperature. The result still has a null entry for pressure, and a later query can probe it again without occupying a negative cache entry.

Verification

  • Ran TimeSeriesMetadataCacheTest, AlignedSeriesScanBatchTest, and ReadPointAlignedCrossCompactionTest against 2.5.1-261202-SNAPSHOT. 39 tests passed, and one existing performance test was skipped.
  • Repeated all three tests with the local snapshot removed from the Maven cache. Maven downloaded build 20261202.154023-1 from Apache snapshots. The published JAR contains the same 1,060 class files, byte for byte, as the tested TsFile snapshot branch.
  • Compiled the full reactor with the English and Chinese locales.
  • Built the standard and Edge distributions and verified the embedded TsFile JAR in both ZIPs.

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.

1 participant