TMDM-7745: "Rematching when only 1 record was resolved seems to rematch everything again"

Alternate implementation for performance improvement (following comment in https://jira.talendforge.org/browse/TMDM-7745?focusedCommentId=336705&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-336705).
(https://jira.talendforge.org/browse/TMDM-7745)