Re: Perfomance Problems

From: "Brent R(dot) Matzelle" <bmatzelle(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Perfomance Problems
Date: 2001-11-06 18:24:26
Message-ID: 20011106182426.96941.qmail@web13001.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- Manuel Duran Aguete <mdaguete(at)alsernet(dot)es> wrote:
> The B app takes less than a second in process each message.
> The statement is
> SELECT * FROM table_a
> WHERE number = 123
> AND msg_orig = 'A'
> ORDER by id;

If number is a VARCHAR then why are you selecting it like it is
an INT ("WHERE number = 123" rather than "WHERE number =
'123'")? You seem to need an index on number. The index on
time_b does not look like it is necessary.

Brent

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Creager, Robert S 2001-11-06 18:32:50 multi column aggregates?
Previous Message Andrew Sullivan 2001-11-06 18:12:27 Re: Probably simple answer