Skip to content

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

Merged
merged 6 commits into from
Feb 3, 2025
Merged

Conversation

mcmorisi
Copy link
Collaborator

@mcmorisi mcmorisi commented Jan 29, 2025

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-46690

Staging Links

  • connect/compression
  • connect
  • Self-Review Checklist

    • Is this free of any warnings or errors in the RST?
    • Did you run a spell-check?
    • Did you run a grammar-check?
    • Are all the links working?
    • Are the facets and meta keywords accurate?

    Copy link

    netlify bot commented Jan 29, 2025

    Deploy Preview for docs-pymongo ready!

    Name Link
    🔨 Latest commit 1bb506f
    🔍 Latest deploy log https://app.netlify.com/sites/docs-pymongo/deploys/679a77cb1843e90008e57c48
    😎 Deploy Preview https://deploy-preview-158--docs-pymongo.netlify.app
    📱 Preview on mobile
    Toggle QR Code...

    QR Code

    Use your smartphone camera to open QR code link.

    To edit notification comments on pull requests, go to your Netlify site configuration.

    Copy link

    netlify bot commented Jan 29, 2025

    Deploy Preview for docs-pymongo ready!

    Name Link
    🔨 Latest commit 4fab5a7
    🔍 Latest deploy log https://app.netlify.com/sites/docs-pymongo/deploys/679d246e3e868b000837459f
    😎 Deploy Preview https://deploy-preview-158--docs-pymongo.netlify.app
    📱 Preview on mobile
    Toggle QR Code...

    QR Code

    Use your smartphone camera to open QR code link.

    To edit notification comments on pull requests, go to your Netlify site configuration.

    Copy link
    Collaborator

    @rachel-mack rachel-mack left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    A couple notes:

    Comment on lines 26 to 32
    - `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.
    Copy link
    Collaborator

    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?

    Copy link
    Member

    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.

    Comment on lines 26 to 32
    - `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.
    Copy link
    Member

    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.

    - `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.
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    @mcmorisi mcmorisi merged commit e3f2626 into mongodb:master Feb 3, 2025
    6 checks passed
    @mcmorisi mcmorisi deleted the DOCSP-46690-compression branch February 3, 2025 15:46
    mcmorisi added a commit that referenced this pull request Feb 3, 2025
    (cherry picked from commit e3f2626)
    mcmorisi added a commit that referenced this pull request Feb 3, 2025
    (cherry picked from commit e3f2626)
    mcmorisi added a commit that referenced this pull request Feb 3, 2025
    (cherry picked from commit e3f2626)
    mcmorisi added a commit that referenced this pull request Feb 3, 2025
    (cherry picked from commit e3f2626)
    mcmorisi added a commit that referenced this pull request Feb 3, 2025
    (cherry picked from commit e3f2626)
    mongoKart pushed a commit to mongoKart/docs-pymongo that referenced this pull request Feb 6, 2025
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants