MySQL Forums
Forum List  »  InnoDB

Re: Very slow insert with Innodb
Posted by: Rick James
Date: January 11, 2009 10:47PM

I assume one of these is a typo:
`ID` bigint(16) unsigned NOT NULL,
PRIMARY KEY (`PurchasedGameTicketID`),

Is it
KEY `Fld1Tbl1` (`Fld1`),
KEY `Fld2Tbl1` (`Fld2`),
KEY `Fld3Tbl1` (`Fld3`)
or is it really
KEY (fld1, fld2, fld3)

Those have different meanings -- in some cases 3 keys is better, in some cases the compound key is better.

For
select * from Tbl1 where Fld1 = ? and Fld2 = ? and Fld6 = ?
The compound key may be better. (It would match on fld1 and fld2.)

How many rows in each INSERT? Possibly it should be limited to a few dozen at a time.

Options: ReplyQuote


Subject
Views
Written By
Posted
7024
December 30, 2008 09:12PM
2925
December 30, 2008 11:01PM
2912
January 05, 2009 08:28AM
2641
January 05, 2009 07:08PM
2674
January 05, 2009 11:46PM
2415
January 06, 2009 09:45PM
2867
January 07, 2009 03:37AM
Re: Very slow insert with Innodb
2423
January 11, 2009 10:47PM
2301
January 17, 2009 09:44AM
2387
January 17, 2009 11:58PM
2719
January 18, 2009 09:09AM
2341
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.