From 8966b1ac2814d7ab86788c944172986a97237b7a Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Fri, 23 Feb 2024 16:41:29 +0100 Subject: [PATCH] minor fixes --- migration.sql | 4 ++-- src/postgres.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migration.sql b/migration.sql index a904106..8f52b05 100644 --- a/migration.sql +++ b/migration.sql @@ -55,8 +55,8 @@ CREATE TABLE banking_stage_results_2.blocks ( leader_identity varchar(44) NOT NULL, supp_infos text ); --- page layout: blockhash is important -ALTER TABLE banking_stage_results_2.blocks SET (toast_tuple_target=128); +-- page layout: blockhash is frequently used +ALTER TABLE banking_stage_results_2.blocks SET (toast_tuple_target=200); CREATE INDEX idx_blocks_block_hash ON banking_stage_results_2.blocks(block_hash); diff --git a/src/postgres.rs b/src/postgres.rs index 0974270..0482d96 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -515,7 +515,7 @@ impl PostgresSession { let started_at = Instant::now(); let num_rows = self.client.execute(statement.as_str(), &[]).await?; debug!( - "merged new transactions into accounts_map_transaction_latest for {} accounts in {}ms", + "merged new transactions into accounts_map_transaction_latest temp table for {} accounts in {}ms", num_rows, started_at.elapsed().as_millis() );