I have three query in different php files. But I have had some speed problem.
query1 and query2 are approximately take 650ms.
query3 just takes approximately 140ms.
Is there any query mistake in the following? If it is, please let me inform.
Or is there any different query that has same result and shorter the time.
$query1 = "SELECT * FROM konu WHERE ( NOW() < DATE_ADD( `time` , INTERVAL 1 DAY) ) ORDER BY time DESC";
$query2 = "SELECT * FROM konu WHERE ( NOW() < DATE_ADD( `time` , INTERVAL 2 DAY ) ) AND ( NOW() > DATE_ADD( `time`, INTERVAL 1 DAY ) ) ORDER BY time DESC";
$query3 = "SELECT * FROM konu WHERE ( NOW() > DATE_ADD( `time`, INTERVAL 2 DAY ) ) AND ( NOW() < DATE_ADD( `time`, INTERVAL 900 DAY ) ) ORDER BY time DESC";