Re: Nested loops are killing throughput

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CG <cgg007(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Nested loops are killing throughput
Date: 2006-09-19 18:17:52
Message-ID: 15195.1158689872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

CG <cgg007(at)yahoo(dot)com> writes:
> I'm still getting the nested loop for a join.

> Nested Loop (cost=100000000.00..100013378.98 rows=2206 width=145) (actual time=46.743..18202.318 rows=2225 loops=1)
> -> Index Scan using packet_user_idx on packet dp (cost=0.00..88.03 rows=2206 width=125) (actual time=42.263..124.519 rows=2225 loops=1)
> Index Cond: ((username)::text = 'joeuser'::text)
> -> Index Scan using packet_status_puuid_pkey on packet_status dps (cost=0.00..6.01 rows=1 width=20) (actual time=8.115..8.117 rows=1 loops=2225)
> Index Cond: ("outer".packet_uuid = dps.packet_uuid)
> Total runtime: 18205.880 ms

If packet_status is large, that seems like a perfectly reasonable plan
to me. If not ... what data type is packet_uuid? Is its equality op
marked mergeable or hashable?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message CG 2006-09-19 18:59:13 Re: Nested loops are killing throughput
Previous Message CG 2006-09-19 18:05:06 Re: Nested loops are killing throughput