Hello,
I have a users table that need's a flag to indicate the status of the user. I see that many use something like u.active = true. I would however like to support more states such as 'active', 'suspended', 'deleted'. So I was thinking of doing a string attribute called status that would store one of these three. In MySQL I would use enum's for this. As I will filter on this attribute in almost every query I am curious if there are any performance aspects of different types?
I could also save different states as int's (1,2,3) and use a skiplist index.
Thanks!