enable write-ahead logging on all sqlite databases (#2162)

This commit is contained in:
Jason Dove
2025-07-18 11:17:21 +00:00
committed by GitHub
parent 464c1e2ea8
commit cf6b9cf29a
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -109,6 +109,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Expand special zero-count case for `Multiple` playout mode with playlists
- This configuration will automatically maintain the multiple count so that it is equal to the number of items in each playlist item
- This configuration should be used if you want to play every media item in a playlist item exactly once before advancing
- Enable write-ahead logging (WAL) mode on SQLite databases
### Fixed
- Fix QSV acceleration in docker with older Intel devices
@@ -1,5 +1,6 @@
using System.Globalization;
using System.Reflection;
using Dapper;
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Infrastructure.Data;
@@ -8,6 +9,8 @@ public static class DbInitializer
{
public static async Task<Unit> Initialize(TvContext context, CancellationToken cancellationToken)
{
await context.Connection.ExecuteAsync("PRAGMA journal_mode=WAL", cancellationToken);
if (!context.LanguageCodes.Any())
{
var assembly = Assembly.GetEntryAssembly();