You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: FULLTEXT2 reads and writes its files through the index-file layer and its disk cache #31772
Is there an existing issue for the same feature request?
I have checked the existing issues.
Is your feature request related to a problem?
FULLTEXT2 stores each base segment and CDC tail frame as chunk rows and, on every load,
streams all of them from the table into a local temp file: after each CN restart and for
each new index generation. A large index pays a full read of its chunk rows on every
restart. The index-file layer and disk cache (#31051, #31050) exist but no index uses them.
Describe the feature you'd like
FULLTEXT2 reads and writes its files through the index-file layer, so a file is assembled
once per CN and reused from its local disk cache across loads and restarts:
base segments and tail frames larger than one chunk are index files; one-chunk tail
frames stay plain chunk rows, read in batches;
the index-file cache has its own capacity (index-file-disk-capacity, not a share of
the table-data disk-capacity), evicts least recently used first and never a file in
use, collects files idle past a TTL, and gives space back when the disk runs low;
a rebuilt file is verified while its chunks stream in (CRC32-C), with no read-back; a
full check of cached files after a restart is opt-in.
Describe implementation you've considered
Design and decisions: docs/design/20261024-index-file-io.md.
Documentation, Adoption, Use Case, Migration Strategy
New CN settings under [fileservice.cache]: index-file-disk-capacity (default 8GiB),
index-file-check-on-startup (default false). index-file-disk-share, added on main by #31050 and not in
any release tag, is removed. Existing FULLTEXT2 indexes stay readable: files recorded with
an MD5 checksum are still verified by MD5.
Additional information
Measured on Rally pmc (574,199 documents, 13.0 GB index); numbers in the PR.
Activity
fulltext2: read and write index files through the index-file layer; L…