How can i query the settings for collection compression in MongoDB?
I configured WiredTiger as storage engine and as collection compression the zlib algorithm.
Here is a snippet of my configuration YAML file:
storage:
dbPath: "/data/wiredTiger"
engine: "wiredTiger"
wiredTiger:
collectionConfig:
blockCompressor: "zlib"
Using mongo version 3.0.5.
Any help please
Best Answer
found the solution by myself.
use db.printCollectionStats()
in the output you will find the mentioned algorithm in the "wiredTiger.creationString" section.
just look for block_compressor