MySQL Forums
Forum List  »  InnoDB

Disable single index instead of all indexes
Posted by: Ra Nala
Date: February 12, 2016 01:26AM

Hi,

I am loading millions of records using one of the ETL tool as KETTLE. here is there any possibility to disable single index instead on all indexes in one table.

I am aware of below syntax to disable indexes but want to disable only one index. why because if i disable all indexes my ETL will die at comparisons on another column indexing.

1. SET unique_checks = 0;
2. ALTER TABLE `table_name` DISABLE KEYS;

Example : select e1.empname,e2.price from employee e1, employee_sal e2 where e1.id=e2.id

let us assume i have index on empname as well then if i apply above syntax then i will be in trouble am i correct ? why because i am retrieving millions of records using on id column as well


Thanks,
Ra na la

Options: ReplyQuote


Subject
Views
Written By
Posted
Disable single index instead of all indexes
2676
February 12, 2016 01:26AM


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.