mysql datetime performance

Posted by praksant on Stack Overflow See other posts from Stack Overflow or by praksant
Published on 2010-05-10T17:55:33Z Indexed on 2010/05/10 18:24 UTC
Read the original article Hit count: 290

Filed under:
|

Hi,

since in mysql datetime field is represented as string (i'm not sure how it works internally), wouldn't be from performance point of view faster to store date as unix timestamp? I don't need to use any mysql native date functions, i'm going for performance of sorting and selecting data.

if there was an index for that column, would be difference between int and datetime?

Thank you

© Stack Overflow or respective owner

Related posts about mysql

Related posts about Performance