aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-04-21 14:05:27 +0200
committerBond_009 <bond.009@outlook.com>2023-04-21 14:05:27 +0200
commit13152bf09dcadf8807e1240be7ca84662d2ed397 (patch)
tree26abd090eff01c34d22c706d6fb6a7143b7749da /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent8dba3a44fd3f4771acb0cade2c91696179ad21d9 (diff)
Change number of read connections based on # of threads and add comments
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 33466c34b..22d485d33 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -336,7 +336,7 @@ namespace Emby.Server.Implementations.Data
_jsonOptions = JsonDefaults.Options;
DbFilePath = Path.Combine(_config.ApplicationPaths.DataPath, "library.db");
- ReadConnectionsCount = 5;
+ ReadConnectionsCount = Environment.ProcessorCount * 2;
}
/// <inheritdoc />