I have some Oracle and MySQL databases migrated to DolphinDB with dataX and mysql plugins, and I want to check if the migrated data is consistent with the source.
I’ve tried the following 2 methods:
Compare the number of records between source and target databases. The problem is
count
in MySQL is very inefficient and it takes more than a day. Besides, this method only validates the volume of records, not the data consistency.Retrieve data in batches and check the values. High volume of data still affects the performance.
Is there any efficient way to check the data consistency between the source and target database?