From 11127f269da8a7542a7556246167d59a6bfa8513 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Tue, 30 May 2023 20:50:30 -0400 Subject: [PATCH] increase hypertable bucket size to 5 minutes --- services/tasks/src/migrations.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/tasks/src/migrations.rs b/services/tasks/src/migrations.rs index 46ee116..ffa08e1 100644 --- a/services/tasks/src/migrations.rs +++ b/services/tasks/src/migrations.rs @@ -39,7 +39,7 @@ async fn migrate_players() { println!("PLAYERS => create_hypertable"); query( "SELECT create_hypertable('players', 'time', - chunk_time_interval => INTERVAL '1 minute', if_not_exists => TRUE);", + chunk_time_interval => INTERVAL '5 minutes', if_not_exists => TRUE);", ) .execute(pool) .await @@ -82,7 +82,7 @@ async fn migrate_classes() { println!("CLASSES => create_hypertable"); query( "SELECT create_hypertable('classes', 'time', - chunk_time_interval => INTERVAL '1 minute', if_not_exists => TRUE);", + chunk_time_interval => INTERVAL '5 minutes', if_not_exists => TRUE);", ) .execute(pool) .await @@ -125,7 +125,7 @@ async fn migrate_vehicles() { println!("VEHICLES => create_hypertable"); query( "SELECT create_hypertable('vehicles', 'time', - chunk_time_interval => INTERVAL '1 minute', if_not_exists => TRUE);", + chunk_time_interval => INTERVAL '5 minutes', if_not_exists => TRUE);", ) .execute(pool) .await