Libary import got a complete overhaul. On a library of 1,200 titles: initial scan is 80-85% faster. Subsequent imports are 60-70% faster
This commit is contained in:
parent
7c144b8277
commit
878a5dd36c
20 changed files with 227 additions and 196 deletions
|
|
@ -89,6 +89,9 @@ namespace ApplicationServices
|
|||
var totalCount = importItems.Count;
|
||||
Log.Logger.Information($"GetAllLibraryItems: Total count {totalCount}");
|
||||
|
||||
if (totalCount == 0)
|
||||
return default;
|
||||
|
||||
Log.Logger.Information("Begin long-running import");
|
||||
logTime($"pre {nameof(importIntoDbAsync)}");
|
||||
var newCount = await importIntoDbAsync(importItems);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue