Re: Bottleneck?

From: wkipjohn(at)gmail(dot)com
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, Ip Wing Kin John <wkipjohn(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Bottleneck?
Date: 2009-08-06 05:21:10
Message-ID: 0016e6464d809d0c8d047072497c@google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Sorry post again.

QUERY PLAN
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-------------------
Sort (cost=390162.53..390162.54 rows=3 width=567) (actual
time=105726.803..105 756.743 rows=80963 loops=1)
Sort Key: rec.startdatetime, rec.id
Sort Method: quicksort Memory: 43163kB
-> Nested Loop IN Join (cost=360360.86..390162.51 rows=3 width=567) (actual
time=41332.430..105220.859 rows=80963 loops=1)
Join Filter: ((rec.acsguid)::text = (resolve.resolve)::text)
-> Nested Loop (cost=360360.86..389999.01 rows=3 width=567) (actual t
ime=41252.145..104952.438 rows=80963 loops=1)
Join Filter: ((rec.volumeguid)::text = (dummymediastatus.volumegu id)::text)
-> HashAggregate (cost=360360.86..360405.96 rows=3608 width=16) (actual
time=41212.903..41299.709 rows=80000 loops=1)
-> Hash Join (cost=335135.05..354817.67 rows=1108637 widt h=16) (actual
time=36360.938..38540.426 rows=4000000 loops=1)
Hash Cond: ((getcurrentguids.getcurrentguids)::text =
(dummymediastatus.volumeguid)::text)
-> Function Scan on getcurrentguids (cost=0.00..260 .00 rows=1000 width=32)
(actual time=977.013..997.404 rows=80000 loops=1)
-> Hash (cost=285135.53..285135.53 rows=3999962 wid th=16) (actual
time=35383.529..35383.529 rows=4000000 loops=1)
-> Seq Scan on dummymediastatus (cost=0.00..2 85135.53 rows=3999962
width=16) (actual time=5.081..32821.253 rows=4000000 loops =1)
Filter: (startdatetime <= 1249281281666:: bigint)
-> Index Scan using index_dummymediastatus_startdatetime on dumm
ymediastatus rec (cost=0.00..8.15 rows=3 width=414) (actual
time=0.791..0.792 r ows=1 loops=80000)
Index Cond: (rec.startdatetime = (max(dummymediastatus.star tdatetime)))
-> Function Scan on resolve (cost=0.00..260.00 rows=1000 width=32) (a ctual
time=0.001..0.001 rows=1 loops=80963)
Total runtime: 105906.467 ms
(18 rows)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2009-08-06 06:15:15 Re: Bottleneck?
Previous Message wkipjohn 2009-08-06 05:13:54 Re: Bottleneck?