Re: Query-Planer from 6seconds TO DAYS

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Böckler Andreas" <andy(at)boeckler(dot)org>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Query-Planer from 6seconds TO DAYS
Date: 2012-10-26 15:41:12
Message-ID: 20121026154112.306890@gmx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Böckler Andreas wrote:

> b) they high seq costs might be true for that table (partition at
>    40gb), but not for the rest of the database Seqscan-Costs per
>    table would be great.

You can set those per tablespace. Again, with about 40 spindles in
our RAID, we got about ten times the speed with a sequential scan as
random access, and an index scan has to hit more pages (index and
heap rather than just the heap), so you can easily shoot yourself in
the foot by assuming that accessing a large portion of the table by
index is faster.

Really, if you stop focusing on what you think the solution is, and
provide a more clear statement of your problem, with sufficient
datail, you are likely to get a real solution.

http://wiki.postgresql.org/wiki/SlowQueryQuestions

-Kevin

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2012-10-26 17:58:19 Re: Query-Planer from 6seconds TO DAYS
Previous Message ktm@rice.edu 2012-10-26 15:30:49 Re: Query-Planer from 6seconds TO DAYS