MySQL Forums
Forum List  »  General

Re: Using an ENUM column in an index
Posted by: Tom Byars
Date: March 17, 2015 07:49AM

Thanks for the reply Peter. The enum field will be the last column in five different indexes and will have 255 possible values. The table has around 2.5 million rows and rising.

The alternative to the enum column is two columns that require a total of 4 bytes so using the enum would save me 7.5 MB per index (37.5 MB in total) assuming the enum column will only take up one byte per entry in the index.

Options: ReplyQuote


Subject
Written By
Posted
Re: Using an ENUM column in an index
March 17, 2015 07:49AM


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.