-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: optimize ledgerv1 #453
Conversation
2a94901
to
adb0cf4
Compare
Codecov Report
@@ Coverage Diff @@
## release/v1.10 #453 +/- ##
=================================================
- Coverage 64.06% 64.05% -0.01%
=================================================
Files 152 152
Lines 14032 14142 +110
=================================================
+ Hits 8989 9059 +70
- Misses 4460 4490 +30
- Partials 583 593 +10
|
if err := l.store.Close(ctx); err != nil { | ||
return errors.Wrap(err, "closing store") | ||
} | ||
//if err := l.store.Close(ctx); err != nil { |
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.
Should we keep the store close ?
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.
Oh, i've forgot to close! thks
return &Store{ | ||
executorProvider: executorProvider, | ||
schema: schema, | ||
onClose: onClose, | ||
onDelete: onDelete, | ||
bloom: bloom.NewWithEstimates(1000000, 0.01), // TODO: Configure |
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.
Do you want to make that configurable ?
|
||
entry, ok := s.cache.Get(address) | ||
if ok { | ||
account := entry.(*core.AccountWithVolumes) |
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.
pkg/storage/sqlstorage/volumes.go
Outdated
|
||
entry, ok := s.cache.Get(address) | ||
if ok { | ||
account := entry.(*core.AccountWithVolumes) |
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.
Should we update the cache after inserting in the database ?
No description provided.