This section explains how to configure WiredTiger's builtin support for the lz4, snappy, zlib and zstd compression engines.
To use the builtin support for Yann Collet's LZ4 compression, first check that LZ4 is installed in include and library directories searched by the compiler. Once LZ4 is installed, you can enable LZ4 using the –enable-lz4
option to configure.
If LZ4 is installed in a location not normally searched by the compiler toolchain, you'll need to modify the CPPFLAGS
and LDFLAGS
to indicate these locations. For example, with the LZ4 includes and libraries installed in /usr/local/include
and /usr/local/lib
, you would run configure with the following additional arguments:
When opening the WiredTiger database, load the LZ4 shared library as an extension. For example, with the WiredTiger library installed in /usr/local/lib
, you would use the following extension:
Finally, when creating the WiredTiger object, set block_compressor
to lz4:
To use the builtin support for Google's snappy compression, first check that snappy is installed in include and library directories searched by the compiler. Once snappy is installed, you can enable snappy using the –enable-snappy
option to configure.
If snappy is installed in a location not normally searched by the compiler toolchain, you'll need to modify the CPPFLAGS
and LDFLAGS
to indicate these locations. For example, with the snappy includes and libraries installed in /usr/local/include
and /usr/local/lib
, you would run configure with the following additional arguments:
When opening the WiredTiger database, load the snappy shared library as an extension. For example, with the WiredTiger library installed in /usr/local/lib
, you would use the following extension:
Finally, when creating the WiredTiger object, set block_compressor
to snappy:
To use the builtin support for Greg Roelofs' and Mark Adler's zlib compression, first check that zlib is installed in include and library directories searched by the compiler. Once zlib is installed, you can enable zlib using the –enable-zlib
option to configure.
If zlib is installed in a location not normally searched by the compiler toolchain, you'll need to modify the CPPFLAGS
and LDFLAGS
to indicate these locations. For example, with the zlib includes and libraries installed in /usr/local/include
and /usr/local/lib
, you would run configure with the following additional arguments:
When opening the WiredTiger database, load the zlib shared library as an extension. For example, with the WiredTiger library installed in /usr/local/lib
, you would use the following extension:
The default compression level for the zlib compression is Z_DEFAULT_COMPRESSION
(see the zlib documentation for further information); compression can be configured to other levels using the additional configuration argument compression_level
.
Finally, when creating the WiredTiger object, set block_compressor
to zlib:
To use the builtin support for Facebook's Zstd compression, first check that Zstd is installed in include and library directories searched by the compiler. Once Zstd is installed, you can enable Zstd using the –enable-zstd
option to configure.
If Zstd is installed in a location not normally searched by the compiler toolchain, you'll need to modify the CPPFLAGS
and LDFLAGS
to indicate these locations. For example, with the Zstd includes and libraries installed in /usr/local/include
and /usr/local/lib
, you would run configure with the following additional arguments:
When opening the WiredTiger database, load the Zstd shared library as an extension. For example, with the WiredTiger library installed in /usr/local/lib
, you would use the following extension:
The default compression level for the zstd compression is 6; compression can be configured to other levels using the additional configuration argument compression_level
.
Finally, when creating the WiredTiger object, set block_compressor
to zstd:
WiredTiger does not store information with file blocks to identify the compression engine used to compressed the block. Applications wanting to upgrade to some future compression engine (without requiring a file dump and re-load), should ensure each compressed block includes enough information to identify the compression engine used, so its compression code can correctly decompress old and new blocks.
WiredTiger may be extended by adding custom compression engines; see WT_COMPRESSOR for more information.
脑补是什么意思 | 世侄是什么意思 | 深井冰什么意思 | 吃什么东西补血最快 | 戒烟吃什么药 |
circle什么意思 | 腰上有痣代表什么 | 作怪是什么意思 | 怀孕期间不能吃什么 | 木字旁羽字是什么字 |
癫痫属于什么科 | 丑是什么生肖 | 为什么海藻敷完那么白 | 直肠ca代表什么病 | bcm是什么意思 |
飞蚊症是什么原因引起的 | 木星是什么颜色 | 什么是有源音箱 | 订单号是什么 | 为什么早射 |
琬字五行属什么hcv9jop6ns1r.cn | 体液是什么hcv7jop6ns1r.cn | 清明为什么插柳枝hcv8jop2ns3r.cn | 羊膜束带是什么意思helloaicloud.com | 晚上睡觉出虚汗是什么原因hcv7jop6ns6r.cn |
吃维生素b1有什么好处和副作用hcv8jop9ns4r.cn | 老睡不醒是什么原因shenchushe.com | 前列腺钙化灶什么意思hcv9jop3ns4r.cn | 梅花三弄的三弄指什么hcv9jop3ns7r.cn | 猪儿虫是什么意思jiuxinfghf.com |
九岁属什么生肖hcv8jop1ns2r.cn | 尿路感染吃什么药hcv9jop1ns3r.cn | 瑞字属于五行属什么hcv8jop9ns6r.cn | 子宁不嗣音什么意思hcv9jop3ns1r.cn | 骨折吃什么恢复得快jiuxinfghf.com |
激酶是什么hcv8jop4ns1r.cn | 空调外机很响是什么原因hcv8jop5ns0r.cn | 角先生是什么hcv7jop9ns2r.cn | 口臭药店买什么药吃hcv8jop0ns0r.cn | 癌前病变是什么意思liaochangning.com |