Skip to content

Commit

Permalink
Bump pool connections to improve performance (#971)
Browse files Browse the repository at this point in the history
* trying to repro the member list issues in ios

* try a different approach

* add more errors and logging

* bump the connections to 25

* bump to 11

* remove testing code

* check out main
  • Loading branch information
nplasterer authored Aug 19, 2024
1 parent 74ff8be commit 28f5f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmtp_mls/src/storage/encrypted_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl EncryptedMessageStore {
.max_size(1)
.build(ConnectionManager::<SqliteConnection>::new(":memory:"))?,
StorageOption::Persistent(ref path) => Pool::builder()
.max_size(10)
.max_size(25)
.build(ConnectionManager::<SqliteConnection>::new(path))?,
};

Expand Down Expand Up @@ -330,7 +330,7 @@ impl EncryptedMessageStore {
.max_size(1)
.build(ConnectionManager::<SqliteConnection>::new(":memory:"))?,
StorageOption::Persistent(ref path) => Pool::builder()
.max_size(10)
.max_size(25)
.build(ConnectionManager::<SqliteConnection>::new(path))?,
};

Expand Down

0 comments on commit 28f5f61

Please sign in to comment.