mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 08:28:18 +00:00
increase sqlite "connections"(??) to improve performance
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user