Skip to content

Commit b09e63e

Browse files
authored
fix: make sqlite faster on Linux (#307)
1 parent a27d3f4 commit b09e63e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/next_ls/db/schema.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ defmodule NextLS.DB.Schema do
4343
[]
4444
)
4545

46+
DB.__query__(
47+
conn,
48+
~Q"""
49+
PRAGMA synchronous = OFF
50+
""",
51+
[]
52+
)
53+
4654
result =
4755
case DB.__query__(conn, ~Q"SELECT MAX(version) FROM schema;", []) do
4856
[[version]] when version == @version ->

0 commit comments

Comments
 (0)