Skip to content

Commit b8c5869

Browse files
committed
update compression advice
1 parent b605170 commit b8c5869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The aforementioned tuned settings can be further adjusted. Some bindings (e.g. C
101101
* **threads = -1**: worker thread budget for compression and sort operations; -1 to match up to 8 host processors.
102102
* **zstd_level = 6**: Zstandard compression level for newly written data (-5 to 22)
103103
* **inner_page_KiB = 16**: [SQLite page size](https://www.sqlite.org/pragma.html#pragma_page_size) for new databases, any of {1, 2, 4, 8, 16, 32, 64}. Larger pages are more compressible, but increase random I/O amplification.
104-
* **outer_page_KiB = 32**: compression layer page size for new databases, any of {1, 2, 4, 8, 16, 32, 64}. Recommend doubling the inner page size.
104+
* **outer_page_KiB = 32**: compression layer page size for new databases, any of {1, 2, 4, 8, 16, 32, 64}. The default configuration (inner_page_KiB, outer_page_KiB) = (16,32) balances access speed and compression. Try setting them to (8,16) to prioritize access speed, or (64,1) to prioritize compression.
105105

106106
The connection's potential memory usage can usually be budgeted as roughly the page cache size, plus the size of any uncommitted write transaction (unless unsafe_load), plus some safety factor. ❗However, this can *multiply by (threads+1)* during queries whose results are at least that large and must be re-sorted. That includes index creation, when the indexed columns total such size.
107107

0 commit comments

Comments
 (0)