In our org, we have 60 million Account records many of which are duplicates. We are trying to find all those duplicate records based on their golden Id(MDM). We are trying the below query in Batch and other tools but it times out anyway.
SELECT COUNT(ID) ID, R1_ACC_TXT_Id_Golden_record__c FROM ACCOUNT WHERE CreatedDate=Last_YEAR GROUP BY R1_ACC_TXT_Id_Golden_record__c HAVING COUNT(ID)>1 limit 1000
Is there a way to find out at least the count of duplicate records with their salesforce ID?We also have informatica ETL tool that we can make use of.
Regards, Chetan
where
clause to include additional indexed filters? You may also want to review an old but accepted post around this area too.