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

DOCSP-48170: Async examples for Serialization/Third Party Tools #231

Closed

Conversation

mcmorisi
Copy link
Collaborator

@mcmorisi mcmorisi commented Mar 19, 2025

Pull Request Info

PR Reviewing Guidelines

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

Staging Links

  • serialization
  • 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 Mar 19, 2025

    Deploy Preview for docs-pymongo ready!

    Name Link
    🔨 Latest commit cde5865
    🔍 Latest deploy log https://app.netlify.com/sites/docs-pymongo/deploys/67e16bfd2a5229000824525f
    😎 Deploy Preview https://deploy-preview-231--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

    @jordan-smith721 jordan-smith721 left a comment

    Choose a reason for hiding this comment

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

    LGTM

    source/tools.txt Outdated
    _ = monkey.patch_all()
    from pymongo import MongoClient
    client = MongoClient()
    # You must call patch_all() *before* importing any other modules

    Choose a reason for hiding this comment

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

    The async API doesn't support using gevent. That should be explicitly called out in the docs, where would the best place be to do so?

    Copy link
    Collaborator Author

    Choose a reason for hiding this comment

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

    Probably either in the breaking changes page or on the forthcoming Sync vs. Async page. In the meantime, can undo this change here.

    Choose a reason for hiding this comment

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

    Does it make sense to add a little callout here saying that AsyncMongoClient doesn't support gevent?

    @mcmorisi mcmorisi requested a review from NoahStapp March 24, 2025 14:28
    @mcmorisi mcmorisi closed this Mar 24, 2025
    @mcmorisi mcmorisi deleted the DOCSP-48170-serialization-tpt-async branch March 24, 2025 15:40
    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