我有一个 MySQL 查询,它比较两个表之间的值。查询工作正常,但有点慢。
这是查询
SELECT * FROM questions WHERE questions.id NOT IN (SELECT answers.qid FROM answers where answers.account = 'Account') and FIND_IN_SET(questions.lang,'en,de') and category = 'Cat' order by section
我的结构看起来像这样
表问题
表答案
我在查询运行的两个表中都有大约 900 条记录。但查询执行时间为 5.8475 秒。
我想知道我的查询中是否有一些可以优化的东西以使其执行更快。

