Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not specify zstd compression level #14807

Open
2 tasks done
KhaledMosaad opened this issue Aug 15, 2024 · 4 comments
Open
2 tasks done

can not specify zstd compression level #14807

KhaledMosaad opened this issue Aug 15, 2024 · 4 comments
Labels
underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core

Comments

@KhaledMosaad
Copy link

Prerequisites

  • I have written a descriptive issue title
  • 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 and it's a constant static value can not be specified

@vkarpov15
Copy link
Collaborator

I did some digging and it looks like this option is hard-coded by the MongoDB Node driver: mongodb/node-mongodb-native#3237 (comment). I opened an issue in MongoDB JIRA here: https://jira.mongodb.org/browse/NODE-6336

@vkarpov15 vkarpov15 added the underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core label Aug 16, 2024
@nbbeeken
Copy link

@KhaledMosaad Can you elaborate on the use case for adjusting the level? Of course, I assume it is to either decrease payload size or increase speed, I am curious which is the primary motivator. Would you have use for levels above 19? (asking in reference to the increased memory to support above 19). Thanks in advance!

@KhaledMosaad
Copy link
Author

KhaledMosaad commented Aug 20, 2024

I did some digging and it looks like this option is hard-coded by the MongoDB Node driver: mongodb/node-mongodb-native#3237 (comment). I opened an issue in MongoDB JIRA here: https://jira.mongodb.org/browse/NODE-6336

Thank you for your effort @vkarpov15

@KhaledMosaad
Copy link
Author

@KhaledMosaad Can you elaborate on the use case for adjusting the level? Of course, I assume it is to either decrease payload size or increase speed, I am curious which is the primary motivator. Would you have use for levels above 19? (asking in reference to the increased memory to support above 19). Thanks in advance!

@nbbeeken Frankly speaking, I do not intend to use compression of 19 or above. Currently, I am in the testing phase to determine the optimal performance and payload size for our use case. Our goal is to reduce the payload size to minimize data transfer from MongoDB atlas, thereby cutting costs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core
Projects
None yet
Development

No branches or pull requests

3 participants