-
Notifications
You must be signed in to change notification settings - Fork 17
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
Improve queries after LogStructured removal #195
Improve queries after LogStructured removal #195
Conversation
Depends on #194 |
BenchmarkResults
Current status
|
8309551
to
1d65a6e
Compare
1d65a6e
to
26ae39e
Compare
26ae39e
to
47e6f72
Compare
47e6f72
to
9552496
Compare
Marking as ready as #194 was merged. |
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, thank you Marco!
@@ -42,7 +42,8 @@ func init() { | |||
} | |||
|
|||
type Dialect interface { | |||
List(ctx context.Context, prefix, startKey string, limit, revision int64, includeDeleted bool) (*sql.Rows, error) | |||
List(ctx context.Context, prefix, startKey string, limit, revision int64) (*sql.Rows, error) | |||
ListTTL(ctx context.Context, revision int64) (*sql.Rows, error) |
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 love this as a separate function on the dialect, it not only makes the queries more readable but also reduces the amount of things we return.
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 also reflects nicely in the benchmark :) Thanks!
This reverts commit 40bd618.
This PR takes advantage from the reduced need of SQLLog after the merge LogStructured. This should result in a smoother startup and less data passed through the network.