Forum Moderators: coopster
--
Mysql:
* INT (4 bytes)
* DATETIME (8 bytes)
* TIMESTAMP (4 bytes)
--
My PHP application does alot of querying from the database to compare specific data within TIMERANGES, so always, I'm querying with "time >" or "time <".
My question is would doing the WHERE time query with the native MySQL DATETIME be faster, than doing a WHERE query with the unix timestamp?
In the past I've accepted authoritative-sounding answers on performance questions like this in the past, only to find out they simply weren't true for my application/OS/server version.
You can use PHP's microtime() function and a for loop.