Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-03-05 Thread Carlos Moreno

Tom Lane wrote:


Carlos Moreno [EMAIL PROTECTED] writes:
 


I would have expected a mind-blowing increase in responsiveness and
overall performance.  However, that's not the case --- if I didn't know
better, I'd probably tend to say that it is indeed the opposite  
(performance seems to have deteriorated)
   



Did you remember to re-ANALYZE everything after loading up the new
database?  That's a frequent gotcha ...
 



I did.

I didn't think it would be necessary, but being paranoid as I am, I figured
let's do it just in case.

After a few hours of operation, I did a vacuumdb -z  also.  But it seems to
continue downhill   :-(

Thanks,

Carlos
--


---(end of broadcast)---
TIP 6: explain analyze is your friend


Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-03-02 Thread Dennis Bjorklund

Carlos Moreno skrev:

The system does very frequent insertions and updates --- the longest
table has, perhaps, some 20 million rows, and it's indexed (the primary
key is the combination of two integer fields).  This longest table only
has inserts (and much less frequent selects), at a peak rate of maybe
one or a few insertions per second.


One or a few inserts per second doesn't sound like that much. I would 
have expected it to work. If you can you might want to group several 
inserts into a single transaction.


A standard hint is also to move the WAL onto its own disk. Or get a disk 
controller with battery backed up ram.


But it's hard to say from your description what the bottleneck is and 
thus hard to give any advice.



Any help/tips/guidance in troubleshooting this issue?  It will be
much appreciated!


You could try to find specific queries that are slow. Pg can for example 
log queries for you that run for longer than X seconds.


/Dennis

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-02-28 Thread Tom Lane
Carlos Moreno [EMAIL PROTECTED] writes:
 I would have expected a mind-blowing increase in responsiveness and
 overall performance.  However, that's not the case --- if I didn't know
 better, I'd probably tend to say that it is indeed the opposite  
 (performance seems to have deteriorated)

Did you remember to re-ANALYZE everything after loading up the new
database?  That's a frequent gotcha ...

regards, tom lane

---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
   subscribe-nomail command to [EMAIL PROTECTED] so that your
   message can get through to the mailing list cleanly


Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-02-28 Thread Carlos Moreno

Tom Lane wrote:


Carlos Moreno [EMAIL PROTECTED] writes:
 


I would have expected a mind-blowing increase in responsiveness and
overall performance.  However, that's not the case --- if I didn't know
better, I'd probably tend to say that it is indeed the opposite  
(performance seems to have deteriorated)
   



Did you remember to re-ANALYZE everything after loading up the new
database?  That's a frequent gotcha ...
 



I had done it, even though I was under the impression that it wouldn't be
necessary with 8.2.x  (I still chose to do it just in case).

I've since discovered a problem that *may* be related to the deterioration
of the performance *now* --- but that still does not explain the machine
choking since last night, so any comments or tips are still most welcome.

Thanks,

Carlos
--


---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster


Re: [PERFORM] Upgraded to 8.2.3 --- still having performance issues

2007-02-28 Thread Rodrigo Gonzalez

Carlos Moreno wrote:

Tom Lane wrote:


Carlos Moreno [EMAIL PROTECTED] writes:
 


I would have expected a mind-blowing increase in responsiveness and
overall performance.  However, that's not the case --- if I didn't know
better, I'd probably tend to say that it is indeed the opposite  
(performance seems to have deteriorated)
  


Did you remember to re-ANALYZE everything after loading up the new
database?  That's a frequent gotcha ...
 



I had done it, even though I was under the impression that it wouldn't be
necessary with 8.2.x  (I still chose to do it just in case).

I've since discovered a problem that *may* be related to the deterioration
of the performance *now* --- but that still does not explain the machine
choking since last night, so any comments or tips are still most welcome.

Thanks,

Carlos
--


---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster



And the problem that *may* be related is?

All the information is required so someone can give you good information...

---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly