Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Disable single index instead of all indexes (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>