-
Notifications
You must be signed in to change notification settings - Fork 214
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
[ADP-2871] use a query store for tx metas #3828
[ADP-2871] use a query store for tx metas #3828
Conversation
a72f0f3
to
c79149f
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.
Excellent, very clean, I like it! 😊 Unfortunately, there is a off-by-one error which was not caught by prop_StoreUpdates
. Darn. 😳
In order to fix the off-by-one error, I think the simplest approach is to make a separate query GetAfterSlot
, where the lower bound is exclusive rather than inclusive as it is for GetAll
. (We could change GetAll
to be exclusive on the lower bound, but this would change the semantics of listTransactions
– which would be out of scope here.)
Also, I would suggest renaming GetAll
to GetRange
, as it's probably more appropriate.
Small request on the in-memory implementation of GetOne
.
c79149f
to
0154d05
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.
Excellent, thank you! 😊 Would like to see remaining comments addressed before merge, though. Importantly, I would be in favor of using GetAfterSlot
for both the Nothing
and the Just
case, as this will then ensure unit test coverage for the rollback. (One unit test checks that the queries are the same, and one unit test checks that the query is suitable for a rollback.)
164bdfa
to
f299e67
Compare
f299e67
to
3106c56
Compare
bors r+ |
Build succeeded: |
…aolino a=paolino - [x] Create a QueryStore for TxMeta so that we can use an (only) on-disk store for them ADP-2871 Co-authored-by: paolino <[email protected]> Source commit: 48b612e
ADP-2871