Re: [GENERAL] Hash function constant in the Hash join algorithm

2015-05-07 Thread Tom Lane
Ravi Kiran writes: > From the above two cases, I am understanding that even even when the hash > function is made to return a constant, The hashjoin agorithm is taking > significantly lower time compared to nested loop. > Could anyone explain why does the hashjoin algorithm takes significantly >

[GENERAL] Hash function constant in the Hash join algorithm

2015-05-07 Thread Ravi Kiran
Hi, As part part of my project, I had to compare the time taken by the Hashjoin algorithm to that of Nested loop algorithm for the inner join and Natural join queries, under two cases. I used six tables to join each other each containing 5000 rows each approximately. The two cases are given bel