MySQL Forums
Forum List  »  Newbie

Re: Replacing a subset of records in a 8.5M row table, with performance?
Posted by: David Wynter
Date: June 29, 2005 10:08AM

Ha,

Replaced the original DELETE using the subquery with this:

DELETE FI_CROSS_REF_DATA_IDENTIFIERS FROM FI_CROSS_REF_DATA_IDENTIFIERS, fi_cross_ref_data_identifiers_temp
WHERE FI_CROSS_REF_DATA_IDENTIFIERS.ASSET_ID = `fi_cross_ref_data_identifiers_temp`.ASSET_ID

It took all of 13 seconds to do it's job, the Insert took 7 second. I am a happy punter. Clearly need to buy Jays book to understand why these queries behave so differently.

Regards,

David

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.