In collectDelta, the procedure that collects the PKs for the documents that should be updated or deleted for an entity, iterates over the entire deltaSet for every deleted document. This is very expensive when you are updating and deleting millions of documents in one delta-import.
Considering that the comparison between deleted and delta is on the PK, lets build the deltaSet as a HashMap instead of a HashSet to enable quick key lookups and remove the need for repeated iterations.
|Assignee||Robert Muir [ rcmuir ]|
|Fix Version/s||3.1 [ 12314371 ]|
|Fix Version/s||4.0 [ 12314992 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|4d 21h 12m||1||Robert Muir||31/Oct/10 13:04|
|150d 2h 41m||1||Grant Ingersoll||30/Mar/11 16:45|