Re: Query becoming slower on adding a primary key [ SOLVED

From: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org, joseph(dot)turner(at)oakleynetworks(dot)com
Subject: Re: Query becoming slower on adding a primary key [ SOLVED
Date: 2004-06-11 04:59:29
Message-ID: 40C93C31.6070404@trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


HI,

The problem was solved by reducing the effective_cache_size from 102400
to 10240
my total RAM is 4GB.

Regds
mallah.

Tom Lane wrote:

>mallah(at)trade-india(dot)com writes:
>
>
>>tradein_clients=# explain analyze select email_id ,email ,contact from
>>t_a a join email_source f using(email_id) join email_subscriptions h
>>using(email_id) where 1=1 and f.source_id =1 and h.sub_id = 3 ;
>>
>>
>
>
>
>>Runs for Ever.
>>
>>
>
>So what does plain explain say about it?
>
> regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message sad 2004-06-11 07:32:58 casting int to bit
Previous Message William Anthony Lim 2004-06-11 04:36:49 (No Subject)