Hi
I was just working on a web application and find that the most the mysql tables have fields, like, is_live, can_do, required, published
(and many more) having field type TINYINT, and takes either 0 or 1
only. I was just wondering if I need to create indexes on these columns as scripts are using joins which include these columns as well. So questions are :
Should I add indexes to these columns as well?
Should I change the type to anything else?
Please see this question is more to do with understanding the concept rather than solving a problem.
Thanks.