increase sqlite "connections"(??) to improve performance

This commit is contained in:
Brandon Thomas committed 2023-02-16 02:28:53 -05:00
1 parent f7ddd24325
commit 2de7ce146f
1 file changed
+1 -1
@@ -104,7 +104,7 @@ pub async fn main() -> AnyhowResult<()> {
let database_url = easyenv::get_env_string_required("DATABASE_URL")?;
let pool = SqlitePoolOptions::new()
.max_connections(5)
.max_connections(16)
.connect(&database_url).await?;
let pool2 = pool.clone(); // NB: Clone-safe.