While i was creating stress data for a table i found the following files are generated.
-rw-rw---- 1 mysql mysql 8858 Jul 28 06:47 card.frm -rw-rw---- 1 mysql mysql 7951695624 Jul 29 20:48 card.MYD -rw-rw---- 1 mysql mysql 51360768 Jul 29 20:57 card.MYI
Actually i inserted 1985968 number of records in this table. But the index file size is unbelievable.
Structure of the table is
create table card( company_id int(10), emp_number varchar(100), card_date varchar(10), time_entry text, total_ot varchar(15), total_per varchar(15), leave_taken double, total_lop double, primary key (company_id,emp_number,card_date), index (company_id,card_date) );
Is there any way to reduce the filesize of the MYD?