Skip to content

Commit 1a2ffb0

Browse files
committed
feat(wal): reenables wal mode
1 parent c88d682 commit 1a2ffb0

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

fly.toml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ destination = "/data"
1515
[deploy]
1616
release_command = "node ./other/sentry-create-release"
1717

18+
[env]
19+
PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK = "1"
20+
1821
[[services]]
1922
internal_port = 8080
2023
processes = [ "app" ]

other/litefs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ exec:
3636

3737
# re-enable these when this is fixed: https://github.com/superfly/litefs/issues/425
3838
# # Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
39-
# - cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
40-
# if-candidate: true
39+
- cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
40+
if-candidate: true
4141

4242
# # Set the journal mode for the cache to WAL. This reduces concurrency deadlock issues
43-
# - cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
44-
# if-candidate: true
43+
- cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
44+
if-candidate: true
4545

4646
- cmd: npm start

prisma/data.db-shm

32 KB
Binary file not shown.

prisma/data.db-wal

24.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)