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
raw_json: measure zstd with a trained dictionary #97
raw_json is the biggest part of a cache (43–61% in #79). Per-row gzip helped little (706 to 448 bytes for one message), because each row is small. A shared dictionary trained on the account's own raw_json (zstd) may compress much better.
The cost: tg sql users read raw_json with json_extract, which wouldn't work on compressed rows unless tg offers a way to decompress in SQL or keeps the fields people query in columns.
Proposed: measure on the #80 benchmark (bytes per message, write and read time) whether zstd with a trained dictionary is available in Bun, how much it saves after #86, and what tg sql would need. Decide in docs/storage.md; implement only if the saving is large.
Done when the benchmark reports the numbers and the design doc decides. Depends on #80 and #86.
Activity