Automattic / Automattic/mongoose
can not specify zstd compression level
- Dominant language
- JavaScript
- Stars
- 27.5k
- Forks
- 4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 35
Description
### Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the issue has not already been raised
### Issue
I want to use `zstd` compression lib on the `compressors` connection option but can not specify the level of the compression it should be from 1 to 22, I see that the default value for this compression is 3 on [node-mongodb-native](https://github.com/mongodb/node-mongodb-native/blob/b70c88504168a2890cc430bb27664402ac3d9edf/src/cmap/wire_protocol/compression.ts#L43) and it's a constant static value can not be specified
Contributor guide
Research direction
The issue concerns the compressors connection option and zstd handling in node-mongodb-native's compression.ts, linked at line 43. Start by tracing how Mongoose passes this option to the driver and inspect the fixed level-3 default. Done means callers can select a zstd compression level from 1 to 22, with coverage verifying the option is forwarded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb, node.js
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100