Skip to content

feat: optimise startup query#450

Merged
frisitano merged 1 commit intomainfrom
refactor/optimise-startup-query
Dec 3, 2025
Merged

feat: optimise startup query#450
frisitano merged 1 commit intomainfrom
refactor/optimise-startup-query

Conversation

@frisitano
Copy link
Collaborator

Overview

This PR modifies the get_latest_indexed_event_l1_block_number query, which is used at startup, to compute the max of the block_number, finalized_block_number, and reverted_block_number columns. We now compute this as three separate queries, which allows for much better performance as we can make superior use of indexes.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 3, 2025

CodSpeed Performance Report

Merging #450 will not alter performance

Comparing refactor/optimise-startup-query (9c5733b) with main (9af4eef)

Summary

✅ 2 untouched

@frisitano frisitano merged commit a900ec4 into main Dec 3, 2025
15 checks passed
@frisitano frisitano deleted the refactor/optimise-startup-query branch December 3, 2025 17:15
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