While modified being indexed, this one:
SELECT UNIX_TIMESTAMP(`modified`) stamp FROM `some_table` WHERE modified > FROM_UNIXTIME(127068799) ORDER BY modified DESC
- The best solution, since it is compatible and allows you to use the index on modified , unlike both of your queries.
source share