-
Notifications
You must be signed in to change notification settings - Fork 298
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
Start on better indexing support #2223
Conversation
great add! |
37e52d4
to
2e8682a
Compare
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.
first batch of comments
@@ -3,4 +3,4 @@ package version | |||
// MinimumSupportedMySQLVersion is the minimum version of MySQL supported for this driver. | |||
// | |||
// NOTE: must match a tag on DockerHub for the `mysql` image. | |||
const MinimumSupportedMySQLVersion = "8.0" | |||
const MinimumSupportedMySQLVersion = "8.4" |
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.
why was this bumped?
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.
its the minimum supported version by MySQL
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.
I think this warrants at least a note in the release, even if those versions are already EoL
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.
Last batch of review comments
} | ||
|
||
err = tx.QueryFunc(ctx, func(ctx context.Context, rows R) error { | ||
explainString := "" |
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.
use a StringBuilder since this could be a pretty long explain
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.
This is only done during testing; we don't really care about performance in that case
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.
It's death by a thousand cuts. Then we start asking ourselves "why is CI taking so long?". I think keeping tests as fast as the critical path is also important.
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.
I disagree; sometimes you don't want to hyper optimize code (making it less readable) simply to ensure some small improvements on CI.
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.
I don't think using a StringBuilder
to replace string concatenation falls under "hyper optimize" category, we know it can have quite an impact in hot paths, but sure
internal/datastore/postgres/migrations/zz_migration.0020_add_watch_api_index.go
Show resolved
Hide resolved
…ions These will be used for validation and hinting
2e8682a
to
3ccb22b
Compare
Updated |
common.IndexDefinition
APIFollow ups
UnwrapAs
is used everywhere