Re: [PERFORM] Hash Join performance

2009-03-13 Thread Vamsidhar Thummala
On Fri, Mar 13, 2009 at 7:08 PM, Tom Lane wrote: > Vamsidhar Thummala writes: > > I am wondering why are we subtracting the entire Seq Scan time of > Lineitem > > from the total time to calculate the HashJoin time. > > Well, if you're trying to identify the speed of the join itself and not > how l

Re: [PERFORM] Hash Join performance

2009-03-13 Thread Tom Lane
Vamsidhar Thummala writes: > I am wondering why are we subtracting the entire Seq Scan time of Lineitem > from the total time to calculate the HashJoin time. Well, if you're trying to identify the speed of the join itself and not how long it takes to provide the input for it, that seems like a se

Re: [PERFORM] Hash Join performance

2009-03-13 Thread Vamsidhar Thummala
Thanks for such quick response. On Fri, Mar 13, 2009 at 5:34 PM, Tom Lane wrote: > > 2) Why is the Hash Join (top most) so slow? > > Doesn't look that bad to me. The net time charged to the HashJoin node > is 186107.210 - 53597.555 - 112439.592 = 20070.063 msec. In addition it > would be reason

Re: [PERFORM] Hash Join performance

2009-03-13 Thread Tom Lane
Vamsidhar Thummala writes: > 1) The actual time on Seq Scan on Lineitem shows that the first record is > fetched at time 0.022ms and the last record is fetched at 53.5s. Does it > mean the sequential scan is completed with-in first 53.4s (absolute time)? No, it means that we spent a total of 53.5

[PERFORM] Hash Join performance

2009-03-13 Thread Vamsidhar Thummala
>From the documentation, I understand that range of actual time represents the time taken for retrieving the first result and the last result respectively. However, the following output of explain analyze confuses me: GroupAggregate (cost=632185.58..632525.55 rows=122884 width=57) (actual time=18