Skip to content

Commit

Permalink
fix: make sqlite faster on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Oct 27, 2023
1 parent a27d3f4 commit 515bd41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/next_ls/db/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ defmodule NextLS.DB.Schema do
[]
)

DB.__query__(
conn,
~Q"""
PRAGMA synchronous = OFF
""",
[]
)



result =
case DB.__query__(conn, ~Q"SELECT MAX(version) FROM schema;", []) do
[[version]] when version == @version ->
Expand Down

0 comments on commit 515bd41

Please sign in to comment.