-
Notifications
You must be signed in to change notification settings - Fork 135
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
perf(postgres): Add indexer on blocks."time" and optimize roundtable query #2742
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request introduces new query methods in the BlockTable module and updates related tests. In particular, it adds asynchronous functions Changes
Sequence Diagram(s)sequenceDiagram
participant AT as AggregateTradingReward
participant BT as BlockTable
AT->>BT: Call findBlockByCreatedOnOrAfter(timestamp)
BT-->>AT: Return block or undefined
alt Block found
AT->>AT: Process block (access blockHeight)
else No block found
AT->>AT: Log error and throw exception
end
Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (13)
🔇 Additional comments (8)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
4ca78d7
to
4f6a916
Compare
Changelist
Context
AggregateTradingReward class
Test Plan
Unit test
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
Tests
Chores