MySQL Forums
Forum List  »  General

Re: Slow Inserts
Posted by: Rick James
Date: March 27, 2009 09:35PM

Since you are using InnoDB, recommend MEDIUMINT UNSIGNED AUTO_INCREMENT for the PRIMARY KEY of the staging table. (Or whatever the smallest INT you can safely use.) No other keys.

The Fact table should not have any keys other than the PRIMARY KEY, preferrably an explicit BIGINT AUTO_INCREMENT. If it does, let's discuss how to do without the secondary keys.

Options: ReplyQuote


Subject
Written By
Posted
October 03, 2008 09:03AM
October 03, 2008 10:12AM
March 27, 2009 08:25AM
Re: Slow Inserts
March 27, 2009 09:35PM


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.