Skip to content

fix: replace old storage format with the 1.5.2 to enable advanced compression methods#5332

Merged
drrtuy merged 2 commits into
MariaDB:11.4from
drrtuy:bb-11.4-storage-version
Jul 3, 2026
Merged

fix: replace old storage format with the 1.5.2 to enable advanced compression methods#5332
drrtuy merged 2 commits into
MariaDB:11.4from
drrtuy:bb-11.4-storage-version

Conversation

@drrtuy

@drrtuy drrtuy commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Pin DuckDB storage format to v1.5.2 to enable advanced compression

What

Newly created DuckDB databases used the conservative default storage
format, which gates out modern column compression (e.g. DICT_FSST) and
forces the legacy separate Dictionary/FSST encodings. This inflated the
on-disk database considerably. Pinning the storage version to v1.5.2
lets DuckDB pick the compact compression schemes.

Key changes

  • runtime/duckdb_manager.cc: set config.options.serialization_compatibility to SerializationCompatibility::FromString("v1.5.2") in DuckdbManager::Initialize().
  • Rename runtime/fiber_context.cfiber_context.cpp and update runtime/CMakeLists.txt accordingly.

How to test

Create a fresh database and load ClickBench data, then:
SELECT run_in_duckdb('SELECT column_name, compression FROM pragma_storage_info(''test.hits'') GROUP BY 1,2');
Expect DICT_FSST on string columns and a smaller PRAGMA database_size.
Note: the storage version applies only to newly created files — existing DBs must be reloaded.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@drrtuy drrtuy force-pushed the bb-11.4-storage-version branch from 46bdb49 to aeaa98f Compare July 3, 2026 07:31
@drrtuy drrtuy force-pushed the bb-11.4-storage-version branch from aeaa98f to ed349a8 Compare July 3, 2026 10:05
@drrtuy drrtuy force-pushed the bb-11.4-storage-version branch from ed349a8 to 0f8f2a7 Compare July 3, 2026 14:25
@drrtuy drrtuy merged commit 8a12e2f into MariaDB:11.4 Jul 3, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants