Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Feb 2, 2022 6:19:26 AM
Mar 26, 2020 11:31:01 AM
[published on behalf of Global Support]
So how to fix this, or at least how to find a method to stop it happening.
The solution is to persuade the optimiser in the source database to use the unique index on the table to access the rows in the table’s tablespace rather than scanning sequentially through it. The index (which is unique) will only provide one row to read for each key as the execution of our SELECT statement progresses. We don’t have to worry about whether it is the ‘latest’ version of the row or not because that will be taken care of later by the application of the cached changes.This is really helpful!