Skip to content

Commit

Permalink
Add chunking for storage logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ischasny committed Jan 15, 2025
1 parent 77691e9 commit 1939475
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/lib/dal/src/storage_logs_dal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,15 +506,15 @@ impl StorageLogsDal<'_, '_> {
for chunk in hashed_keys.chunks(chunk_size) {
let rows = sqlx::query!(
r#"
SELECT
hashed_key,
l1_batch_number,
index
FROM
initial_writes
WHERE
hashed_key = ANY($1::bytea [])
"#,
SELECT
hashed_key,
l1_batch_number,
index
FROM
initial_writes
WHERE
hashed_key = ANY($1::bytea [])
"#,
&chunk as &[&[u8]],
)
.instrument("get_l1_batches_and_indices_for_initial_writes")
Expand Down

0 comments on commit 1939475

Please sign in to comment.