Browse Source

reduce search index batch size (#2590)

pull/2591/head
Jason Dove 9 months ago committed by GitHub
parent
commit
9e54d42e5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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/). @@ -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 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
### Added
- Graphics engine:

2
ErsatzTV/Services/SearchIndexService.cs

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

Loading…
Cancel
Save