Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: performance question (something to do w/ parameterized



Jeffrey Tenny <jeffrey(dot)tenny(at)comcast(dot)net> writes:
> I tried the seqscan disabling and got what sounds like the desired plan:
> Sort  (cost=54900.62..54940.29 rows=1587 width=16) (actual time=20.208..22.138 rows=677 loops=1)
>     Sort Key: f, c
>     ->  Index Scan using x_f_idx, x_f_idx, ...
>     (cost=0.00..54056.96 rows=1587 width=16) (actual time=1.048..15.598 rows=677 loops=1)
>     Index Cond: ((f = 1) OR (f = 2) OR (f = 3) ....

Hm, vs 35000 or so estimates for the slower plans.  My recommendation
would be to decrease random_page_cost to 2 or so, instead of the brute
force disable-seqscans approach.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group