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
Subject
Views
Written By
Posted
Disable single index instead of all indexes
4381
February 12, 2016 01:26AM
1479
February 12, 2016 09:48AM
1459
February 15, 2016 06:24AM
1375
February 15, 2016 10:47AM
1386
February 15, 2016 11:17AM
1209
February 16, 2016 05:51PM
1162
February 16, 2016 11:39PM
1365
February 18, 2016 05:34AM
1078
February 20, 2016 12:00AM
983
March 15, 2016 09:40AM
1036
March 15, 2016 08:16PM
957
March 16, 2016 12:33AM
1044
March 16, 2016 05:04PM
1081
March 28, 2016 03:15AM
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.