pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: tv@fuzzy.cz
To: Ogden <lists@darkstatic.com>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance
Date: Wed, 13 Apr 2011 16:14:42 +0200
Message-ID: <985a2672b882183d323bbba37e6357ae.squirrel@sq.gransy.com> (raw )
In-Reply-To: <A0B9339E-9D58-4842-A206-050B773360B6@darkstatic.com >
References: <DF2D5436-117C-4D02-9B3C-A55723B7DDE1@darkstatic.com >
<20110412171855.GA14292@tux >
<FC3A3A2B-3ECB-41BA-8F94-356D6FED3695@darkstatic.com >
<4DA496FA.3070908@fuzzy.cz >
<8F22D592-23C1-4A3C-94A5-48363332ADD3@darkstatic.com >
<4DA4BFA2.5060601@fuzzy.cz >
<B93DFBBB-DA56-4044-A508-0B7E4A2CFD28@darkstatic.com >
<4DA4D40A.4010200@fuzzy.cz >
<A0B9339E-9D58-4842-A206-050B773360B6@darkstatic.com >
> Thomas,
>
> Thank you for your very detailed and well written description. In
> conclusion, I should keep my random_page_cost (3.0) to a value more than
> seq_page_cost (1.0)? Is this bad practice or will this suffice for my
> setup (where the database is much bigger than the RAM in the system)? Or
> is this not what you are suggesting at all?
Yes, keep it that way. The fact that 'random_page_cost >= seq_page_cost'
generally means that random reads are more expensive than sequential
reads. The actual values are dependent but 4:1 is usually OK, unless your
db fits into memory etc.
The decrease of performance after descreasing random_page_cost to 3 due to
changes of some execution plans (the index scan becomes slightly less
expensive than seq scan), but in your case it's a false assumption. So
keep it at 4 (you may even try to increase it, just to see if that
improves the performance).
regards
Tomas
view thread (60+ messages) latest in thread
Message-ID: <985a2672b882183d323bbba37e6357ae.squirrel@sq.gransy.com>
Permalink: ../985a2672b882183d323bbba37e6357ae.squirrel@sq.gransy.com/
Also on: postgresql.org/message-id/985a2672b882183d323bbba37e6357ae.squirrel@sq.gransy.com
copy link · copy postgr.es
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: tv@fuzzy.cz, lists@darkstatic.com
Subject: Re: Performance
In-Reply-To: <985a2672b882183d323bbba37e6357ae.squirrel@sq.gransy.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