From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
Cc: | Andres Freund <andres(at)2ndquadrant(dot)com>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: parametric block size? |
Date: | 2014-07-28 15:17:53 |
Message-ID: | CA+TgmobZdsicN=Q8-JB4cBO0+xEDWA58nA_iQAnud2Yr_5fTzQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Jul 26, 2014 at 1:37 PM, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> wrote:
>> And I don't see that as being warranted at this point. But further
>> benchmarks sound like a good idea.
>
> Yep. A 10% potential performance impact looks worth the investigation.
I wonder, though, whether this isn't using a crowbar where some finer
instrument is called for. If, for example, bigger heap blocks give
better performance because a bigger I/O size just plain works better,
well then that's interesting in its own right. But if a bigger or
smaller block size yields better results on index scans, the right
solution might be to change the internal page structure used by that
index. For example, I remember reading a paper a few years back where
the authors found that large page sizes were inefficient because you
had to do a linear scan of all the items on the page; so they added
some kind of btree-like structure within the page and got great
results. So the page size itself wasn't the fundamental issue; it had
more to do with what kind of page layout made sense at one page size
vs. another page size.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-07-28 15:21:43 | Re: Making joins involving ctid work for the benefit of UPSERT |
Previous Message | Fabrízio de Royes Mello | 2014-07-28 15:04:12 | Re: [GSoC2014] Patch ALTER TABLE ... SET LOGGED |