如何优化此MySQL查询?
下面还提到了执行计划。
Select
tlk.id, um.store_users_id
from
user_modules um
inner join
module_chapters mc on um.modules_id = mc.modules_id
and mc.comment_status = 1
and um.modules_id = 3697
and mc.chapters_id = 4083
inner join
context con on con.module_id = mc.modules_id
and con.chapter_id = mc.chapters_id
inner join
user_talks tlk on tlk.contextId = con.id
and tlk.context_scope = 1
left join
talk_associated_users tau on tau.talk_id = tlk.id
and tau.target_store_user_id = um.store_users_id
where
tau.target_store_user_id is null
[![以上查询的计划] [1]] [1]