RED-10418: improve unprocessed merge performance

This commit is contained in:
Kilian Schuettler 2024-11-06 15:49:49 +01:00
parent bb9bdabbae
commit 508ac2d677

View File

@ -125,7 +125,7 @@ public class EntityLogMergeService {
Map<String, String> trackLocalChangesBasedOnDictEntriesMap,
int analysisNumber) {
var dictEntryIdsToUpdate = trackLocalChangesBasedOnDictEntriesMap.values();
Set<String> dictEntryIdsToUpdate = new HashSet<>(trackLocalChangesBasedOnDictEntriesMap.values());
entityLogEntries.stream()
.filter(entityLogEntry -> dictEntryIdsToUpdate.contains(entityLogEntry.getId()))
.forEach(entityLogEntry -> {