how good is the datetime for questions like: Compare sales from Monday and Thusday?
Mysql keeps datetime as a unix-timestamp internally? So finding mondays will be quite expensive.
Has anybody got experiance how much better mysql performs when an extra attribute "day" is introduced and given an index? Will indies liked this be used at all? It will only have 7 different states...
DATETIME
is your best choice, as it's mySQL's native format and any date operations are highly optimized for it.Nope. I don't know what mySQL uses to store DATETIMEs internally, but it's not as Unix timestamps: