If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > hast join - performance problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-03, 05:21
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
How to disable hast join - performance problem?

Hi,

I have performance problem with joining tables. With Visual Access Plan I have found out that tables are joined togeter with HASH JOIN type. I would like that DB2 uses only nested loop joins or merge joins.

Is it posible to set some DB2 setting to disable hash join?

My system: DB2 UDB 8.1 fp4 on Windows XP.

Thanks,
Grofaty

Last edited by grofaty; 12-12-03 at 06:16.
Reply With Quote
  #2 (permalink)  
Old 12-12-03, 06:16
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Re: hast join - performance problem

Quote:
Originally posted by grofaty
Hi,

I have performance problem with joining tables. I have found out that tables are joined togeter with HASH JOIN type. I would like that database uses only nested loop joins or merge joins. Is it posible to set some DB2 setting to disable hash join?

Thanks,
Grofaty
Hi,

You can disable hash joins with db2set DB2_HASH_JOIN=NO

regards, Gert
Reply With Quote
  #3 (permalink)  
Old 12-12-03, 07:07
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi GertK,

This command works fine. Thanks.

Grofaty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On