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

Update sql_builder.AfterPrevValues. #1480

Merged
merged 4 commits into from
Feb 9, 2016
Merged

Conversation

dumbunny
Copy link
Contributor

@dumbunny dumbunny commented Feb 3, 2016

Use tuple-comparison instead of complex boolean expression. Add
helper classes TupleGreater, TupleGreaterEqual, TupleLess, TupleLessEqual.

Note: AfterPrevValues is not used by clients yet.

Use tuple-comparison instead of complex boolean expression. Add
helper classes TupleGreater, TupleGreaterEqual, TupleLess, TupleLessEqual.
@dumbunny
Copy link
Contributor Author

dumbunny commented Feb 3, 2016

@aaijazi: PTAL

@aaijazi
Copy link
Contributor

aaijazi commented Feb 4, 2016

LGTM


Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

Approved with PullApprove

The MySQL optimizer does always find good indexes for:

   ('x', 'y') < (3, 4).

Therefore, while keeping the name TupleCompare, I am reverting
the SQL back to:

  x = 3 AND y < 4 OR x < 3.
dumbunny added a commit that referenced this pull request Feb 9, 2016
Update sql_builder.AfterPrevValues.
@dumbunny dumbunny merged commit 5be7ca8 into vitessio:master Feb 9, 2016
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