学历代表过去、能力代表现在、学习力代表未来

数据库大表小表

上一篇 / 下一篇  2010-12-29 12:09:43 / 个人分类:数据库

The "select * from big where object_id in ( select object_id from small )" will sort BIG once and SMALL once and join them (sort merge join) in all likelyhood.

But: The "select * from big where exists ( select null from small where  small.object_id = big.object_id )" will tend to FULL SCAN big once and FOR EVERY   ROW in big -- FULL SCAN small


TAG:

引用 删除 wa806522264   /   2012-07-19 14:02:24
 

评分:0

我来说两句

Open Toolbar