I have this query to select the minimum ID. It seems to work fine in the first few clicks, but it gets really sluggish when I keep on clicking the button that calls this query.
any workarounds for this query?
"select min(t1.blog_id) as min_id
FROM
(SELECT blog_id FROM myblogs_view
where blog_id<'$id' ORDER BY blog_id DESC LIMIT 10) as t1";