Hi All ,
I have some 1,14,000 records in the db . I have doing this operation in the headless client . I am looping through the foundset , finding some duplicate records on some search criteria . Moving some related records of the duplicate records to the archived tables . Then merging the related records to the Original (Master) record . This operation is running very slow . This is taking around 48 hours to complete the operation . I am fragmenting the code to notice what actually is making slow . Now I am in Record with pk - 23305 . This record took 101.628 seconds . The majority of the time is consumed by the functionalities for moving the records to the archived tables . This is 25 secs and 24 secs respectively . I am doing here databaseManager.copyMatchingFields() and databaseManager(recObj) operations . Why it is taking too much time ? . One thing i have noticed it is initially fast but latter gradually it became slow . What may be the cause ? . Please provide some suggestion on this .