Commit d793fd9
fix(sqlite): align getSizeOfCollection FTS prefix with createFulltextIndex
testSizeFullText asserts the collection size grows after a fulltext
index is created. The size LIKE pattern was hardcoded to
"{namespace}_{collection}_" while the FTS5 tables now use
getFulltextTablePrefix, which under sharedTables embeds the tenant
segment. With the two paths diverging, the FTS5 shadow tables
(`_data`, `_idx`, `_docsize`, `_config`) didn't match the dbstat LIKE
and the size came out unchanged. Reuse getFulltextTablePrefix so the
naming stays in lockstep regardless of shared-tables mode.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dde905c commit d793fd9
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| |||
0 commit comments