Re: Help me to get fast query
Hello,
There is no indexes on transaction_id + key columns that your query is using here:
FROM `transaction_xtras` `tx`
WHERE ((`tx`.`transaction_id` = `epstransaction`.`id`)
AND (`tx`.`key` = 'no_kp_lama')))
So create a composite index on these two columns - run this command:
CREATE INDEX trans_xtras_key_trid_ix
ON transaction_xtras( key, transaction_id );
Then run your query and check how long it will be running.
Subject
Written By
Posted
Re: Help me to get fast query
January 10, 2012 10:51AM
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.