Uh oh!
There was an error while loading. Please reload this page.
migrate datasource from store.KVStore to datastore.Datastore - #665
Conversation
a15a038 to
2f767dbCompareCodecov Report
@@ Coverage Diff @@## main #665 +/- ##
==========================================
- Coverage 55.49% 55.06% -0.43%
==========================================
Files 50 48 -2 Lines 10353 10206 -147 ==========================================
- Hits 5745 5620 -125 + Misses 3739 3724 -15 + Partials 869 862 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Uh oh!
There was an error while loading. Please reload this page.
tzdybal
left a comment
There was a problem hiding this comment.
This looks really good! But I still have some questions and comments:
- We probably should use one of interfaces defined in go-datastore, instead of concrete go-ds-badger3 type in most places. For example celestia-node is using
ds.Batchinginstead ofds.Datastore. - I don't get the difference between
BatchingandTxnDatastore/BatchandTxn- probably we should investigate this a bit more. - I think that we should return
query.Resultsto avoid instantiating all the result objects at once.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nashqueue
left a comment
There was a problem hiding this comment.
The changes look great. Most of my comments are nits and optional. Giving me the path to review helped a lot in understanding the bigger picture. Thank you :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…tires as iterator, etc
589d727 to
fd1864fCompareUh oh!
There was an error while loading. Please reload this page.
* fixing merge conflicts * fix breaking changes related to substore, prefixing, and keys * fix all the failing tests * test that is no longer needed * fix missing merge conflict * fixing golangci-lint errors * more lint errors * goimports fixes * fixing golangci-lint failures * changing from DataStore to TxnDatasource, cutting some LOC, prefix entires as iterator, etc Co-authored-by: Ganesha Upadhyaya <gupadhyaya@Ganeshas-MacBook-Pro-2.local>
Fixes#620
description of the major change:
Keyuses strings and does not support byte array. the changes are done for {mainPrefix, dalcPrefix, indexerPrefix} also for {blockPrefix, indexPrefix, commitPrefix, statePrefix, responsesPrefix, validatorsPrefix}."/0/b/<block-hash>""/0/i/<block-header-num>""/2/tx.height/4/4/1""/2/block_events/block.height/10"review can follow this path: