Skip to content

Commit

Permalink
fix: make sqlite faster on Linux (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Oct 27, 2023
1 parent a27d3f4 commit b09e63e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/next_ls/db/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ 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 b09e63e

Please sign in to comment.