Преглед на файлове

Disabled sqlite pooling

JPVenson преди 8 месеца
родител
ревизия
d4aca84581
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs

+ 1 - 1
Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs

@@ -21,7 +21,7 @@ public static class ServiceCollectionExtensions
         serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
         {
             var applicationPaths = serviceProvider.GetRequiredService<IApplicationPaths>();
-            opt.UseSqlite($"Filename={Path.Combine(applicationPaths.DataPath, "jellyfin.db")}");
+            opt.UseSqlite($"Filename={Path.Combine(applicationPaths.DataPath, "jellyfin.db")};Pooling=false");
         });
 
         return serviceCollection;