pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Meinel <john@johnmeinel.com>
To: Rod Dutton <rod@e-rm.co.uk>
To: pgsql-performance@postgresql.org
Subject: Re: Queries slow using stored procedures
Date: Sun, 24 Oct 2004 14:11:49 -0500
Message-ID: <417BFE75.4060006@johnmeinel.com> (raw)
In-Reply-To: <20041024184536.2A841406474@mra02.ex.eclipse.net.uk>
References: <20041024184536.2A841406474@mra02.ex.eclipse.net.uk>

Rod Dutton wrote:
> I also should add that the sp is only slow when the table is big (probably
> obvious!).
> 
> Rod 

Sure, the problem is it is switching to a sequential search, with a lot 
of rows, versus doing an indexed search.

It's all about trying to figure out how to fix that, especially for any 
value of botnum. I would have hoped that using LIMIT 1 would have fixed 
that.

John
=:->

Attachments:

  signature.asc (application/pgp-signature, 252B) download

view thread (6+ messages)

Message-ID: <417BFE75.4060006@johnmeinel.com>
Permalink:  ../417BFE75.4060006@johnmeinel.com/
Also on:    postgresql.org/message-id/417BFE75.4060006@johnmeinel.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-performance@postgresql.org
  Cc: john@johnmeinel.com, rod@e-rm.co.uk
  Subject: Re: Queries slow using stored procedures
  In-Reply-To: <417BFE75.4060006@johnmeinel.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