Browse Source

Increased the max journal_size_limit to reduce the number of truncation operations.

Mark Lopez 2 years ago
parent
commit
29889159e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

+ 2 - 1
Emby.Server.Implementations/Data/BaseSqliteRepository.cs

@@ -73,9 +73,10 @@ namespace Emby.Server.Implementations.Data
 
         /// <summary>
         /// Gets the journal size limit. <see href="https://www.sqlite.org/pragma.html#pragma_journal_size_limit" />.
+        /// The default (-1) is overriden to prevent unconstrained WAL size, as reported by users.
         /// </summary>
         /// <value>The journal size limit.</value>
-        protected virtual int? JournalSizeLimit => 0;
+        protected virtual int? JournalSizeLimit => 134_217_728; // 128MiB
 
         /// <summary>
         /// Gets the page size.