-
Notifications
You must be signed in to change notification settings - Fork 20
DOCSP-46690: Compression #158
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
Conversation
✅ Deploy Preview for docs-pymongo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for docs-pymongo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple notes:
source/connect/compression.txt
Outdated
- `Snappy <https://google.github.io/snappy/>`__: You can use Snappy compression | ||
with MongoDB 3.4 and later by including the `python-snappy <https://pypi.org/project/python-snappy/>`__ | ||
package in your application. | ||
- `Zlib <https://zlib.net/>`__: You can use Zlib compression with MongoDB 3.6 and later. | ||
- `Zstandard <https://github.com/facebook/zstd/>`__: You can use Zstandard compression | ||
with MongoDB 4.2 and later by including the `zstandard <https://pypi.org/project/zstandard/>`__ | ||
package in your application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the tech reviewer: Does MongoDB have a recommendation for which method we prefer?
If so, we should include (recommended)
after the name and put that item at the top of the list. There's a push to make our docs more opinionated. I think @rustagir just had a PR that included a compression recommendation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe snappy and zstd are considered faster than zlib but we have never actually benchmarked it in Python so I can't give a recommendation.
source/connect/compression.txt
Outdated
- `Snappy <https://google.github.io/snappy/>`__: You can use Snappy compression | ||
with MongoDB 3.4 and later by including the `python-snappy <https://pypi.org/project/python-snappy/>`__ | ||
package in your application. | ||
- `Zlib <https://zlib.net/>`__: You can use Zlib compression with MongoDB 3.6 and later. | ||
- `Zstandard <https://github.com/facebook/zstd/>`__: You can use Zstandard compression | ||
with MongoDB 4.2 and later by including the `zstandard <https://pypi.org/project/zstandard/>`__ | ||
package in your application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe snappy and zstd are considered faster than zlib but we have never actually benchmarked it in Python so I can't give a recommendation.
source/connect/compression.txt
Outdated
- `Snappy <https://google.github.io/snappy/>`__: You can use Snappy compression | ||
with MongoDB 3.4 and later by including the `python-snappy <https://pypi.org/project/python-snappy/>`__ | ||
package in your application. | ||
- `Zlib <https://zlib.net/>`__: You can use Zlib compression with MongoDB 3.6 and later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's link to https://docs.python.org/3/library/zlib.html.
(cherry picked from commit e3f2626)
(cherry picked from commit e3f2626)
(cherry picked from commit e3f2626)
(cherry picked from commit e3f2626)
(cherry picked from commit e3f2626)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-46690
Staging Links
Self-Review Checklist