|
In this case I don't know if there is an easier way around it. If you are using surrogate keys, then you need to check with the DB first either with manual iteration and checking, or using an INSERT SELECT statement.
Something still reeks though, given that the > the record count has an incremental slowdown like you are seeing, it still smells of either a datatype issue or an incorrect key setup (such as composite keys searching in the wrong order).
|