diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bb06f036..0e32c811b 100644 --- a/CHANGELOG.md +++ b/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 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: diff --git a/ErsatzTV/Services/SearchIndexService.cs b/ErsatzTV/Services/SearchIndexService.cs index f1e9e26bd..4139a657f 100644 --- a/ErsatzTV/Services/SearchIndexService.cs +++ b/ErsatzTV/Services/SearchIndexService.cs @@ -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 }