Re: INDEX and JOINs

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Reg Me Please <regmeplease(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INDEX and JOINs
Date: 2007-10-26 13:02:21
Message-ID: 20071026130221.GD24394@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 26, 2007 at 02:39:28PM +0200, Reg Me Please wrote:
> > >----------------------------------------------------- Hash Join
> > > (cost=3.95..382140.91 rows=274709 width=91) (actual
> > > time=1.929..57713.305 rows=92 loops=1)
> > > Hash Cond: (t_dati.camp_id = t_campi.camp_id)
>
> prove=# \d t_dati

Ok, my suggestion would be to run it with "enable_seqscan=off" and if
that is indeed faster, then try reducing random_page_cost.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-10-26 13:18:04 Re: INDEX and JOINs
Previous Message Tom Lane 2007-10-26 12:47:06 Re: Query_time SQL as a function w/o creating a new type