-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from yetanalytics/sqlite_mem_fountain_of_youth
Fix in-memory SQLite bug where DB is deleted upon connection close
- Loading branch information
Showing
4 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
;; SQLite deletes the in-mem DB whenever a connection closes, which by default | ||
;; happens after 30 min/1800000 ms, so we set it to 0 to make the lifetime | ||
;; infinite. | ||
#merge | ||
[#include "prod/default/connection.edn" | ||
{:pool-max-lifetime #long #or [#env LRSQL_POOL_MAX_LIFETIME 0]}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
;; SQLite deletes the in-mem DB whenever a connection closes, which by default | ||
;; happens after 30 min/1800000 ms, so we set it to 0 to make the lifetime | ||
;; infinite. | ||
#merge | ||
[#include "test/default/connection.edn" | ||
{:pool-max-lifetime 0}] |