Skip to content

Commit

Permalink
only limit connections for in memory sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKaul committed Aug 5, 2024
1 parent 362f598 commit 8daacf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceberg-sql-catalog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl SqlCatalog {

let mut pool_options = PoolOptions::new();

if url.starts_with("sqlite") {
if url == "sqlite://" {
pool_options = pool_options.max_connections(1);
}

Expand Down

0 comments on commit 8daacf2

Please sign in to comment.