Re: Dealing with complex queries

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Francisco Reyes <lists(at)natserv(dot)com>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dealing with complex queries
Date: 2003-02-04 12:59:54
Message-ID: 20030204125954.GA3239@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 03, 2003 at 16:32:10 -0500,
Francisco Reyes <lists(at)natserv(dot)com> wrote:
> Any hints suggestions on dealing with complex queries.

> substring(ppl.carried_as from 1 for 3)
> = substring(jc.last from 1 for 3) and

Joining on substrings is a good sign that your design needs rethinking.
This indicates that your data isn't normalized and it isn't going to
be particularly fast test (though I didn't check to see if it is a bottleneck
for the particular query you are doing).

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-02-04 13:01:20 Re: Postgres server output logfile
Previous Message Nigel J. Andrews 2003-02-04 12:53:34 Re: Large objects - SOS