RED-10418: improve unprocessed merge performance
This commit is contained in:
parent
2ab247b3cf
commit
abf29b71ba
@ -125,7 +125,7 @@ public class EntityLogMergeService {
|
|||||||
Map<String, String> trackLocalChangesBasedOnDictEntriesMap,
|
Map<String, String> trackLocalChangesBasedOnDictEntriesMap,
|
||||||
int analysisNumber) {
|
int analysisNumber) {
|
||||||
|
|
||||||
var dictEntryIdsToUpdate = trackLocalChangesBasedOnDictEntriesMap.values();
|
Set<String> dictEntryIdsToUpdate = new HashSet<>(trackLocalChangesBasedOnDictEntriesMap.values());
|
||||||
entityLogEntries.stream()
|
entityLogEntries.stream()
|
||||||
.filter(entityLogEntry -> dictEntryIdsToUpdate.contains(entityLogEntry.getId()))
|
.filter(entityLogEntry -> dictEntryIdsToUpdate.contains(entityLogEntry.getId()))
|
||||||
.forEach(entityLogEntry -> {
|
.forEach(entityLogEntry -> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user