Reputation:
Is it better to have a field status enum('active', 'hidden', 'deleted')
OR status tinyint(3)
with a lookup table? Assume that status can take only one value at a time.
In particular, I am interested in knowing if operations on enum
are significantly slower than or as fast as operations on int
?
There is a related question on SO but:
Upvotes: 18
Views: 8738
Reputation: 382696
This is already discussed on popular http://www.mysqlperformanceblog.com, check out this post:
Upvotes: 25