Reduce worker count to reduce postgres connections

This commit is contained in:
Dominik Werder
2024-09-26 12:13:14 +02:00
parent 026fec48ff
commit 188660ae23
5 changed files with 7 additions and 4 deletions
+2
View File
@@ -154,6 +154,7 @@ impl Worker {
stats: Arc<SeriesByChannelStats>,
) -> Result<Self, Error> {
use tokio_postgres::types::Type;
debug!("Worker make_pg_client");
let (pg, pg_client_jh) = crate::conn::make_pg_client(db).await?;
let sql = concat!(
"with q1 as (",
@@ -643,6 +644,7 @@ impl HashSalter for SalterRandom {
}
}
#[cfg(test)]
async fn psql_play(db: &Database) -> Result<(), Error> {
use tokio_postgres::types::ToSql;
use tokio_postgres::types::Type;