是否有可能取代NL加入与HS在SQL JOIN(Is it possible to replace

2019-10-30 03:50发布

你好我有一个非常大的查询包括两个主表和15个副表。

ie, Main table say table_a join with some other 10 tables.
and another main table sat table_b join with some other 5 tables.

Table_a contains - 314988 rows and 
Table_b contains - 710989 rows.

当我们加入我能找到很多NL联接和HS加入。

intresting事实,即所有HSjoin cost very less and NL join cost非常非常高。

那么,是否可以从NL转换连接来HS加入。

注:所有的索引..没有TBSCAN一切都是IXSCAN。

Answer 1:

您可以创建一个优化分布,在那里你会指示哪些方法应该用于访问数据为给定的查询优化器。

看看从developerWorks本教程: http://www.ibm.com/developerworks/data/library/techarticle/dm-1202storedprocedure/index.html



文章来源: Is it possible to replace NL join with HS join in sql