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

Written By
Re: How to index a 1.5 billion rows
July 11, 2012 05:56AM
July 17, 2012 10:06PM
July 19, 2012 09:46PM
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.