Skip to content
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

Performance improvements for batch lookups #967

Merged
merged 4 commits into from
Aug 16, 2022

Conversation

awrichar
Copy link
Contributor

Ensure batch ID queries match the current indexes (to avoid sequential scan), and improve the caching in aggregator when processing a group of pins.

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2022

Codecov Report

Merging #967 (d49d49e) into main (daa036a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #967   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         299      299           
  Lines       19492    19498    +6     
=======================================
+ Hits        19491    19497    +6     
  Misses          1        1           
Impacted Files Coverage Δ
cmd/firefly.go 100.00% <100.00%> (ø)
internal/database/sqlcommon/message_sql.go 100.00% <100.00%> (ø)
internal/events/aggregator.go 100.00% <100.00%> (ø)
internal/events/aggregator_rewind.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks great 👍

@peterbroadhurst peterbroadhurst merged commit b5985ca into hyperledger:main Aug 16, 2022
@peterbroadhurst peterbroadhurst deleted the batch branch August 16, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants