SELECT * FROM table ORDER BY id DESC LIMIT 0,25
when I checked the EXPLAIN it says that it queried 1,000,000
note: total rows of table is 1,000,000
Is there a way to optimize this query? I only wanted to get the most recent entry (let say 25 recent rows)