Browse Source

reduce search index batch size

pull/2590/head
Jason Dove 9 months ago
parent
commit
bfe7db3c83
No known key found for this signature in database
  1. 4
      CHANGELOG.md
  2. 2
      ErsatzTV/Services/SearchIndexService.cs

4
CHANGELOG.md

@ -24,6 +24,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix building sequential schedules across a UTC offset change - Fix building sequential schedules across a UTC offset change
- Fix block start time calculation across a UTC offset change - Fix block start time calculation across a UTC offset change
### Changed
- Use smaller batch size for search index updates (100, down from 1000)
- This should help newly scanned items appear in the UI more quickly
## [25.8.0] - 2025-10-26 ## [25.8.0] - 2025-10-26
### Added ### Added
- Graphics engine: - Graphics engine:

2
ErsatzTV/Services/SearchIndexService.cs

@ -14,7 +14,7 @@ public class SearchIndexService : BackgroundService
private readonly IServiceScopeFactory _serviceScopeFactory; private readonly IServiceScopeFactory _serviceScopeFactory;
private readonly SystemStartup _systemStartup; private readonly SystemStartup _systemStartup;
private const int MaxBatchSize = 1000; private const int MaxBatchSize = 100;
private readonly TimeSpan _maxBatchTime = TimeSpan.FromSeconds(10); private readonly TimeSpan _maxBatchTime = TimeSpan.FromSeconds(10);
private enum SearchOperation { Reindex, Remove } private enum SearchOperation { Reindex, Remove }

Loading…
Cancel
Save