- 论坛徽章:
- 0
|
原帖由 cenalulu 于 2009-12-18 11:38 发表
这要从你的业务层面去修改了,从你的语句来看用户应该是点到了第24页了吧?
一般从设计角度来说应当避免诱使用去去点这么后面的页。
分享一个分页优化的ppt吧,应该会对你有帮助
360432
昏啊,我刚才在终端运行了一下这条语句
mysql> select iid,title,pic_path,price from tb_goods where nick='vivizone' order by lmsn desc limit 480,20;
Empty set (1.67 sec)
但是我
mysql> explain select iid,title,pic_path,price from tb_goods where nick='vivizone' order by lmsn desc limit 480,20 \G;
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: tb_goods
type: ref
possible_keys: nickgood
key: nickgood
key_len: 32
ref: const
rows: 806
Extra: Using where
1 row in set (0.00 sec)
为什么rows是806? |
|