MySQL Forums
Forum List  »  MyISAM

Re: How to index a 1.5 billion rows
Posted by: Rick James
Date: July 11, 2012 05:56AM

It may take days to add any index to a 1.5 billion row table.

There is no simple answer to "how long". Many factors are involved.

Please provide SHOW CREATE TABLE; it might lead to further discussion.

VARCHAR(32) -- what kind of values are in it? What is the CHARACTER SET?

What version of MySQL are you running?

Are the rows roughly in sorted order?

Are there other indexes already? If you need to add more than one index, it is better to do them at the same time in the same ALTER.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to index a 1.5 billion rows
2978
July 11, 2012 05:56AM
1955
July 17, 2012 10:06PM
1777
July 19, 2012 09:46PM
1876
July 29, 2012 04:42AM


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.