oracle 效率之 not in 和exists

使用原则,使用exists 和not exists ,尽量少使用 in 和 not in.

下面是执行计划的截图,以进行对。

如图所示,无论是耗费时间或者i/o访问字节数都有相当显著的降低。

虽然不知道为什么,但是效率确实是提高了,看来优化是很重要的事情。

 

posted @ 2013-04-19 17:06  Goodpy  阅读(406)  评论(0编辑  收藏  举报