Skip to content

Conversation

@greged93
Copy link
Collaborator

Optimizes the insert_batch_consolidation_outcome operation by:

  • Replacing insert_block by insert_blocks using insert_many
  • Replacing update_l1_messages_with_l2_block with update_l1_messages_with_l2_blocks, which uses the CASE sql syntax in order to update all the executed L1 messages of a batch with the appropriate block number.

@greged93 greged93 requested a review from frisitano October 24, 2025 11:16
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 24, 2025

CodSpeed Performance Report

Merging #390 will not alter performance

Comparing feat/optimize-insert-batch-consolidation-outcome (655317c) with main (0152748)

Summary

✅ 2 untouched

frisitano
frisitano previously approved these changes Oct 24, 2025
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

lgtm

@frisitano frisitano merged commit 07c1668 into main Oct 27, 2025
15 checks passed
@frisitano frisitano deleted the feat/optimize-insert-batch-consolidation-outcome branch October 27, 2025 06:51
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