Skip to content

Commit

Permalink
disable use-sqlite-wal
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Apr 13, 2021
1 parent b2a7c83 commit 743e689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ let
echo "experimental-features = nix-command flakes" >> \$dir/conf/nix.conf
echo "sandbox = true" >> \$dir/conf/nix.conf
echo "sandbox-fallback = true" >> \$dir/conf/nix.conf
echo "use-sqlite-wal = false" >> \$dir/conf/nix.conf
export NIX_CONF_DIR=\$dir/conf/
Expand Down

2 comments on commit 743e689

@SuperSandro2000
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far I only needed to set this on WSL.

@DavHau
Copy link
Owner Author

@DavHau DavHau commented on 743e689 Apr 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we want to support NFS based systems, I decided to disable WAL.
The sqlite docs say:
"All processes using a database must be on the same host computer; WAL does not work over a network filesystem."

I guess the perofrmance penalties of not using WAL are an acceptable tradeoff for the improved compatibility to different FSs in general.

Please sign in to comment.