此查询大约需要 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
)
我需要获取所有朋友的最新发布照片...