You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
create SQLite database in WAL mode by default #10279
WAL is significantly faster in most scenarios.
WAL provides more concurrency as readers do not block writers and a writer does not block readers. Reading and writing can proceed concurrently.
Disk I/O operations tends to be more sequential using WAL.
WAL uses many fewer fsync() operations and is thus less vulnerable to problems on systems where the fsync() system call is broken.
I'm wondering if this makes sense for the server to offer sqlite3 with WAL as another option, given the problems I've seen here on the issue tracker regarding performance and locking.
The only disadvantage that I see is that it does not work on a network file system. Is that a possible issue? (although if you EXCLUSIVE locking mode, it will also work on a network fs)
It also creates two additional owncloud.db-wal and owncloud.db-shm files. The shm is shared memory, is that supported for all servers?
Activity
DeepDiver1975 commentedon Aug 8, 2014
http://www.sqlite.org/draft/wal.html
@dragotin do you have any experience with WAL? THX
guruz commentedon Oct 28, 2014
I only searched for sqlite3 so I did not see that this request is already here.
Posted a dup at #11824
guruz commentedon Oct 28, 2014
Cloning my comment:
With the 1.7 sync client, we have switched the sqlite3 mode for
.csync_journal.dbto WAL. (See https://www.sqlite.org/wal.html)I'm wondering if this makes sense for the server to offer sqlite3 with WAL as another option, given the problems I've seen here on the issue tracker regarding performance and locking.
The only disadvantage that I see is that it does not work on a network file system. Is that a possible issue? (although if you
EXCLUSIVElocking mode, it will also work on a network fs)It also creates two additional
owncloud.db-walandowncloud.db-shmfiles. Theshmis shared memory, is that supported for all servers?DeepDiver1975 commentedon Mar 21, 2015
fixed in 8.0