[0006] A common type of query that is optimized is a query that contains a subquery whose join condition involves the NOT IN/ALL operator (NOT IN is equivalent to != ALL). In data-warehouses with reporting applications, such queries and subqueries are usually evaluated on very large sets of data. Thus, it is critical to make such queries scale in any SQL execution engine. When such queries are not optimized using anti-join, the subquery is executing an operation that is effectively a Cartesian product, which is quite inefficient.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22920863/viewspace-660791/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22920863/viewspace-660791/