Skip to content

PYTHON-4206 - QE Range Protocol V2 #1670

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 5 commits into from
Jun 12, 2024
Merged

Conversation

NoahStapp
Copy link
Contributor

No description provided.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot requested a review from Jibola June 11, 2024 18:36
@@ -836,7 +831,7 @@ async def encrypt(
when the algorithm is :attr:`Algorithm.INDEXED`. An integer value
*must* be given when the :attr:`Algorithm.INDEXED` algorithm is
used.
:param range_opts: Experimental only, not intended for public use.
:param range_opts: Index options for `range` queries.
Copy link
Member

Choose a reason for hiding this comment

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

We need notes in the docstrings for the new public parameter being added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For trimFactor? Or for all of the rangeOpts themselves?

Copy link
Member

Choose a reason for hiding this comment

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

rangeOpts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@NoahStapp NoahStapp requested a review from blink1073 June 12, 2024 16:22
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM!

@NoahStapp NoahStapp merged commit 76f1221 into mongodb:master Jun 12, 2024
32 of 34 checks passed

def __init__(
self,
sparsity: int,
trim_factor: int,
Copy link
Member

Choose a reason for hiding this comment

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

Making this a required argument is a breaking change. Is that intended? Are users expected to always specifiy trim_factor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, as per the spec, trim_factor is a required argument.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure that is the case. Adrian says:

My understanding is that [trimFactor is] a knob for our tech support to debug performance issues and that average users should not touch it.

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.

4 participants