-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat: enable racing in the querytee #20156
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
DylanGuedes
left a comment
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.
just to small questions/nitpick suggestions
| ADD COLUMN cell_a_won BOOLEAN NOT NULL DEFAULT FALSE, | ||
| ADD COLUMN cell_b_won BOOLEAN NOT NULL DEFAULT FALSE; |
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.
question: in other parts of the code you used a single bool to infer which cell won, couldn't you take the same approach here?
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.
removed all of this as we already have exec time as robert mentioned here
rfratto
left a comment
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.
LGTM, but probably needs real approval from Dylan or Trevor since they know this code better
pkg/goldfish/migrations/20251205000001_add_race_winner_columns.sql
Outdated
Show resolved
Hide resolved
This reverts commit f319c40.
benclive
left a comment
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.
LGTM
4f516cc to
2671329
Compare
What this PR does / why we need it:
This PR enables racing in the querytee, allowing us to serve the split from the engine that returned a result the fastest, instead of always returning the result from the preferred/v1 engine.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.mdguide (required)featPRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.mddeprecated-config.yamlanddeleted-config.yamlfiles respectively in thetools/deprecated-config-checkerdirectory. Example PR