此查询大约需要8-16秒.. 任何人都可以建议一种提高绩效的方法吗?
SELECT pid, src, src_small, src_big, target_id, created, backdated_time
FROM photo where pid in (
SELECT attachment.media.photo.pid
FROM stream
WHERE filter_key IN ("nf") AND type = 247
LIMIT 50
)
我需要获取最新发布的所有朋友的照片......