I'm extracting data from a MySQL DB that has greather than 20 Million records in it and 12 fields (or columns) defined. The engine is MyISAM and the field I'm interested in is a defined as the primary key and as a BIGINT.
The query takes 3-7 mins with a where clause. Is there anyway to optimize the query?
select cid_1,cid_2 from clients where cid_1='1400001';
The query takes 3-7 mins with a where clause. Is there anyway to optimize the query?
select cid_1,cid_2 from clients where cid_1='1400001';