MySQL Forums
Forum List  »  InnoDB

Re: Very slow insert with Innodb
Posted by: Vikram Rao
Date: January 17, 2009 09:44AM

Yes. Thats a typo.

It is

KEY `Fld1Tbl1` (`Fld1`),
KEY `Fld2Tbl1` (`Fld2`),
KEY `Fld3Tbl1` (`Fld3`)

This is done because lot of select queries run like:

select * from Tbl1 where Fld1 = ? and Fld2 = ?
select * from Tbl1 where Fld1 = ?
select * from Tbl1 where Fld2 = ?
select * from Tbl1 where Fld3 = ?

Having a compound index key would have any issues while selecting above queries?

Each insert will have around 50 rows being inserted. Is it advisable to disabling keys before inserting and enabling once it is inserted?

Options: ReplyQuote


Subject
Views
Written By
Posted
7264
December 30, 2008 09:12PM
3042
December 30, 2008 11:01PM
3017
January 05, 2009 08:28AM
2757
January 05, 2009 07:08PM
2787
January 05, 2009 11:46PM
2516
January 06, 2009 09:45PM
2980
January 07, 2009 03:37AM
2526
January 11, 2009 10:47PM
Re: Very slow insert with Innodb
2401
January 17, 2009 09:44AM
2504
January 17, 2009 11:58PM
2844
January 18, 2009 09:09AM
2451
January 18, 2009 05:01PM


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.