Re: [PERFORM] please help with the explain analyze plan

2009-02-11 Thread Rajesh Kumar Mallah
hurray! ANALYZING changed the plan I was not expecting the plan to change because the partition of 2006_02 is supposed to be dormant. maybe the partition was never analyzed. But still question remains, why the time taken was in orders of magnitude higher in loaded condition. tradein_clients=>

Re: [PERFORM] please help with the explain analyze plan

2009-02-11 Thread Rajesh Kumar Mallah
thanks for the hint, now the peak hour is over and the same scan is taking 71 ms in place of 8 ms and the total query time is also acceptable. But it is surprising that the scan was taking so long consistently at that point of time. I shall test again under similar circumstance tomorrow. Is i

Re: [PERFORM] please help with the explain analyze plan

2009-02-11 Thread Glyn Astill
--- On Wed, 11/2/09, Rajesh Kumar Mallah wrote: > From: Rajesh Kumar Mallah > Subject: [PERFORM] please help with the explain analyze plan > To: pgsql-performance@postgresql.org > Date: Wednesday, 11 February, 2009, 10:58 AM > Dear friends, > > I have explain analyze of two

[PERFORM] please help with the explain analyze plan

2009-02-11 Thread Rajesh Kumar Mallah
Dear friends, I have explain analyze of two queries explain analyze SELECT count(*) from general.rfis where 1=1 and inquiry_type = 'BUY'and receiver_uid=1320721; (7 ms) http://pastebin.com/m5297e03c explain analyze SELECT count(*) from general.rfis where 1=1 and inquiry_type = 'BUY'