SQL - improve NOT EXISTS query performance

前端 未结 7 1840
名媛妹妹
名媛妹妹 2021-02-07 09:08

Is there a way I can improve this kind of SQL query performance:

INSERT
INTO ...
WHERE NOT EXISTS(Validation...)

The problem is when I have ma

7条回答
  •  醉酒成梦
    2021-02-07 09:46

    Try to replace the NOT EXISTS with a left outer join, it sometimes performs better in large data sets.

提交回复
热议问题