increase hypertable bucket size to 5 minutes

This commit is contained in:
41666 2023-05-30 20:50:30 -04:00
parent 97ea7455a7
commit 11127f269d

View file

@ -39,7 +39,7 @@ async fn migrate_players() {
println!("PLAYERS => create_hypertable"); println!("PLAYERS => create_hypertable");
query( query(
"SELECT create_hypertable('players', 'time', "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) .execute(pool)
.await .await
@ -82,7 +82,7 @@ async fn migrate_classes() {
println!("CLASSES => create_hypertable"); println!("CLASSES => create_hypertable");
query( query(
"SELECT create_hypertable('classes', 'time', "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) .execute(pool)
.await .await
@ -125,7 +125,7 @@ async fn migrate_vehicles() {
println!("VEHICLES => create_hypertable"); println!("VEHICLES => create_hypertable");
query( query(
"SELECT create_hypertable('vehicles', 'time', "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) .execute(pool)
.await .await