Re: Queries slow using stored procedures - Mailing list pgsql-performance

From John Meinel
Subject Re: Queries slow using stored procedures
Date
Msg-id 417BFE75.4060006@johnmeinel.com
Whole thread Raw
In response to Queries slow using stored procedures  ("Rod Dutton" <rod@e-rm.co.uk>)
List pgsql-performance
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
=:->

Attachment

pgsql-performance by date:

Previous
From: John Meinel
Date:
Subject: Re: Queries slow using stored procedures
Next
From: John Meinel
Date:
Subject: Sequential Scan with LIMIT