pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: André Volpato <andre.volpato@ecomtecnologia.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres not using array
Date: Thu, 21 Aug 2008 15:10:18 -0400
Message-ID: <29595.1219345818@sss.pgh.pa.us> (raw)
In-Reply-To: <48AD80FA.30100@ecomtecnologia.com.br>
References: <48AC8292.5000708@ecomtecnologia.com.br>
	<48AD735D.6040403@ecomtecnologia.com.br>
	<23465.1219328880@sss.pgh.pa.us>
	<48AD80FA.30100@ecomtecnologia.com.br>

=?ISO-8859-1?Q?Andr=E9_Volpato?= <andre.volpato@ecomtecnologia.com.br> writes:
> Tom Lane escreveu:
>> So I guess the question is "what is the bds_internacoes function, and
>> why is it so slow?"	

> This function is quite fast:

Well, "fast" is relative.  It's not fast enough, or you wouldn't have
been complaining.

> We are guessing that a dual core 3.0GHz will beat up a quad core 2.2,
> at least in this environmnent with less than 4 concurrent queryes.

The most you could hope for from that is less than a 50% speedup.  I'd
suggest investing some tuning effort first.  Some rethinking of your
schema, for example, might buy you orders of magnitude ... with no new
hardware investment.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <29595.1219345818@sss.pgh.pa.us>
Permalink:  ../29595.1219345818@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29595.1219345818@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andre.volpato@ecomtecnologia.com.br
  Subject: Re: Postgres not using array
  In-Reply-To: <29595.1219345818@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox