一条问题sql
?
?
查询业务主要是供后台人员按不同的album_status查询。常用的sql如下:
SELECT album_id from?ck_album_status? where?album_status?='pass'? order?by?album_id?asc??limit?24?offset?50;
?
SELECT mm.photo_id? FROM?? ck_photo_status ck,???????? message_message mm? WHERE? ck.photo_id = mm.photo_id???????? AND ck.photo_status = 'new'???????? AND mm.status IN ( 5, 6, 7 )???????? AND mm.parent_id IS NULL? ORDER? BY mm.photo_id asc? LIMIT? 24 offset 0;
?
已存在的索引:
?
?
现在的问题:
?是否需要
?
?
?