pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Montrone, Marc -- 7183 <marc.montrone@novastar1.com>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Optimizing
Date: Fri, 28 Feb 2003 17:16:42 -0800
Message-ID: <20030301011642.D1C57103C9@polaris.pinpointresearch.com> (raw)
In-Reply-To: <6F92EBF93563D411A42200508BD97A9A05645C2A@KCNT02B>
References: <6F92EBF93563D411A42200508BD97A9A05645C2A@KCNT02B>

That should be virtually instant.

First, the usual suspects: have you run "vacuum analyze" on your table? If 
not, do it and try again.

If so, please show us your table structure, index, and query - just fire up 
psql and run "\d yourtablename" and "explain <your query>" and send it to us.

Cheers,
Steve

On Friday 28 February 2003 7:26 am, Montrone, Marc -- 7183 wrote:
> Please advise how I can improve performance of query searching for
> telephone numbers. I have a table with over a million records of phone
> numbers in a single indexed field. To find one phone number takes nearly 20
> seconds. Aside from hardware upgrades, how can I improve the performance of
> this query? Thank you in advance.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



view thread (6+ messages)

Message-ID: <20030301011642.D1C57103C9@polaris.pinpointresearch.com>
Permalink:  ../20030301011642.D1C57103C9@polaris.pinpointresearch.com/
Also on:    postgresql.org/message-id/20030301011642.D1C57103C9@polaris.pinpointresearch.com

 · 

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-sql@postgresql.org
  Cc: scrawford@pinpointresearch.com, marc.montrone@novastar1.com
  Subject: Re: Optimizing
  In-Reply-To: <20030301011642.D1C57103C9@polaris.pinpointresearch.com>

* 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