我用如下语句进行分页,每页10条,select * from  pw_threads  where   ifcheck=1 and fid='"+ Session["friend"] + "' order by topped desc, lastpost desc limit "+be+",10但是还必须要获得 总记录数 以取得总页数
 而用select  Count(fid)  from  pw_threads  where   ifcheck=1 and fid='"+ Session["friend"] + "' and author='"+ Session["fusername"] +"'
网页刷新会非常慢
   用explain 获得 DataView[0]["rows"]的数量也不准确请问 各位用什么 更高效率方法 获得 记录总数量