Index: subversion/libsvn_subr/sqlite.c =================================================================== --- subversion/libsvn_subr/sqlite.c (revision 1387107) +++ subversion/libsvn_subr/sqlite.c (working copy) @@ -858,6 +858,12 @@ svn_sqlite__open(svn_sqlite__db_t **db, const char SVN_ERR(exec_sql(*db, "PRAGMA foreign_keys=ON;")); #endif + /* The PERSIST journaling mode is useful as an optimization on platforms + where deleting or truncating a file is much more expensive than + overwriting the first block of a file with zeros. For example + NTFS on Windows.*/ + SVN_ERR(exec_sql(*db, "PRAGMA journal_mode = PERSIST")); + /* Store temporary tables in RAM instead of in temporary files, but don't fail on this if this option is disabled in the sqlite compilation by setting SQLITE_TEMP_STORE to 0 (always to disk) */