1
levn 2012-04-25 12:01:14 +08:00
其实以前我都是在opera里取消一下网页样式表然后就看见blocked的内容了……
|
3
napoleonu 2012-04-25 12:38:53 +08:00
我能想象到的实现这个功能的 SQL 语句效率都不高。
select topic.* from topic left join block on topic.pub_uid=block.blocked_uid and block.uid=$current_user_id where block.uid is null limit 20; 如果是这样,一定要改为 select topic1.* from (select * from topic limit 20) topic1 left join block on topic1.pub_uid=block.blocked_uid and block.uid=$current_user_id where block.uid is null; 分页可以继续优化。 |