From 19ecbf3734c3affaa99e7fa8bf27d644be1b8fd0 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Fri, 8 Jun 2018 06:06:15 -0700 Subject: [PATCH] add note about why no sqlite and nfs --- docs/source/reference/database.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/reference/database.md b/docs/source/reference/database.md index 89c2642e..70edeb4c 100644 --- a/docs/source/reference/database.md +++ b/docs/source/reference/database.md @@ -29,7 +29,12 @@ statement. ### SQLite -The SQLite database should not be used on NFS. +The SQLite database should not be used on NFS. SQLite uses reader/writer locks +to control access to the database. This locking mechanism might not work +correctly if the database file is kept on an NFS filesystem. This is because +`fcntl()` file locking is broken on many NFS implementations. Therefore, you +should avoid putting SQLite database files on NFS since it will not handle well +multiple processes which might try to access the file at the same time. ### MySQL