Skip to content

align column family LSM level defaults to the library and pin them#138

Merged
guycipher merged 2 commits into
masterfrom
452-touchup
May 23, 2026
Merged

align column family LSM level defaults to the library and pin them#138
guycipher merged 2 commits into
masterfrom
452-touchup

Conversation

@guycipher
Copy link
Copy Markdown
Member

tidesdb_default_min_levels and tidesdb_default_dividing_level_offset shipped at 5 and 2 while the underlying TidesDB library's tidesdb_default_column_family_config picks 1 and 1, so a table created in the plugin had a deeper level structure than the same table created through bare libtidesdb without any reason behind the divergence.The two THDVAR defaults now match TDB_DEFAULT_MIN_LEVELS and TDB_DEFAULT_DIVIDING_LEVEL_OFFSET so a freshly created table behaves the same in both layers.tidesdb_analyze and tidesdb_index_stats are re-recorded since ANALYZE TABLE now reports the smaller initial level count.

The README grows a DEFAULTS ALIGNMENT WITH THE LIBRARY section that
spells out the three deliberate column family deviations left in place (SYNC_MODE=FULL for SQL durability, ISOLATION_LEVEL=REPEATABLE_READ to match MariaDB's session default, WRITE_BUFFER_SIZE=128MB for the typical OLTP server profile) and confirms every other CF default tracks the library exactly.The Available tests roster is brought into 1:1 sync with the suite, bumping the count from 51 to 65, dropping the stale tidesdb_alter_crash entry, and adding the rows that had drifted out of the README (tidesdb_alter_large_table, tidesdb_bulk_commit_durability, tidesdb_defaults_alignment, tidesdb_encryption_rotation, tidesdb_fts_stopword_table, tidesdb_isolation_table_option, tidesdb_max_concurrent_flushes, tidesdb_mvcc_concurrent_update, tidesdb_update_unique).tidesdb_defaults_alignment is a new MTR test that SHOWs every per-table-option default so any future drift, accidental or intentional, has to update the recorded result and be acknowledged.

tidesdb_default_min_levels and tidesdb_default_dividing_level_offset
shipped at 5 and 2 while the underlying TidesDB library's
tidesdb_default_column_family_config picks 1 and 1, so a table created
in the plugin had a deeper level structure than the same table created
through bare libtidesdb without any reason behind the divergence.The
two THDVAR defaults now match TDB_DEFAULT_MIN_LEVELS and
TDB_DEFAULT_DIVIDING_LEVEL_OFFSET so a freshly created table behaves
the same in both layers.tidesdb_analyze and tidesdb_index_stats are
re-recorded since ANALYZE TABLE now reports the smaller initial level
count.

 The README grows a DEFAULTS ALIGNMENT WITH THE LIBRARY section that
spells out the three deliberate column family deviations left in place
(SYNC_MODE=FULL for SQL durability, ISOLATION_LEVEL=REPEATABLE_READ to
match MariaDB's session default, WRITE_BUFFER_SIZE=128MB for the typical
OLTP server profile) and confirms every other CF default tracks the
library exactly.The Available tests roster is brought into 1:1 sync
with the suite, bumping the count from 51 to 65, dropping the stale
tidesdb_alter_crash entry, and adding the rows that had drifted out of
the README (tidesdb_alter_large_table, tidesdb_bulk_commit_durability,
tidesdb_defaults_alignment, tidesdb_encryption_rotation,
tidesdb_fts_stopword_table, tidesdb_isolation_table_option,
tidesdb_max_concurrent_flushes, tidesdb_mvcc_concurrent_update,
tidesdb_update_unique).tidesdb_defaults_alignment is a new MTR test
that SHOWs every per-table-option default so any future drift,
accidental or intentional, has to update the recorded result and be
acknowledged.
@guycipher guycipher self-assigned this May 23, 2026
@guycipher guycipher merged commit 435d474 into master May 23, 2026
7 checks passed
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