Re: [PERFORM] Performance on new 64bit server compared to my 32bit desktop

2010-08-26 Thread Scott Carey
On Aug 19, 2010, at 11:25 AM, Greg Smith wrote: > Philippe Rimbault wrote: >> I've run "time pgbench -c 50" : >>server x64 : >>starting vacuum...end. >>transaction type: TPC-B (sort of) >>scaling factor: 1 >>query mode: simple >>number of clients: 50 >>

Re: [PERFORM] [Fwd: postgres 8.4.1 number of connections]

2010-08-26 Thread Josh Berkus
> One of our many concerns has been the way we handle connections to the > database. java/hibernate handle their own pooling so I understand that > using anything else is out of the question. It's not out of the question, but it's probably not necessary. > Our jboss configuration > current

Re: [PERFORM] Slow Query

2010-08-26 Thread Bob Lunney
We need more information than that, like:What version of PostgreSQL?What does the hardware look like?What does the disk and tablespace layout look like?How are your configuration variables set?Other than that, are the statistics up to date on the VehicleMake table?Bob Lunney--- On Thu, 8/26/10, Oze

Re: [PERFORM] Slow Query

2010-08-26 Thread Scott Marlowe
On Thu, Aug 26, 2010 at 6:03 PM, Ozer, Pam wrote: > > I am new to Postgres and I am trying to understand the Explain Analyze so I > can tune the following query.  I run the same query using mysql and it takes > less than 50ms.  I run it on postgres and it takes 10 seconds. I feel like I > am mi

[PERFORM] Slow Query

2010-08-26 Thread Ozer, Pam
I am new to Postgres and I am trying to understand the Explain Analyze so I can tune the following query. I run the same query using mysql and it takes less than 50ms. I run it on postgres and it takes 10 seconds. I feel like I am missing something very obvious. (VehicleUsed is a big table over 7

Re: [PERFORM] [Fwd: postgres 8.4.1 number of connections]

2010-08-26 Thread Scott Marlowe
On Thu, Aug 26, 2010 at 2:29 PM, Maria L. Wilson wrote: > > > we have this application (using jboss/java/hibernate) on linux accessing > data on 3 postgres database servers using 8.4.1. > > One of our many concerns has been the way we handle connections to the > database. java/hibernate handle th

[PERFORM] [Fwd: postgres 8.4.1 number of connections]

2010-08-26 Thread Maria L. Wilson
Original Message Subject:postgres 8.4.1 number of connections Date: Thu, 26 Aug 2010 14:25:47 -0500 From: Maria L. Wilson Reply-To: Wilson, Maria Louise (LARC-E301)[SCIENCE SYSTEMS APPLICATIONS] To: pgsql-performance-ow...@postgresql.org we have this appl

Re: [PERFORM] turn off caching for performance test

2010-08-26 Thread Pierre C
The bitmap heap scan is 3% faster, 3% isn't really significant. Especially if the new setting makes one query 100 times slower... Like a query which will, by bad luck, get turned into a nested loop index scan for a lot of rows, on a huge table which isn't in cache... -- Sent via pgsql-

Re: [PERFORM] turn off caching for performance test

2010-08-26 Thread Arjen van der Meijden
Isn't it more fair to just flush the cache before doing each of the queries? In real-life, you'll also have disk caching... Flushing the buffer pool is easy, just restart PostgreSQL (or perhaps there is a admin command for it too?). Flushing the OS-disk cache is obviously OS-dependent, for linu

[PERFORM] turn off caching for performance test

2010-08-26 Thread Willy-Bas Loos
Hi, I have a colleague that is convinced that the website is faster if enable_seqscan is turned OFF. I'm convinced of the opposite (better to leave it ON), but i would like to show it, prove it to him. Now the first query we tried, would do a bitmap heap scan instead of a seqscan when the latter w