From: | Tomas Vondra <tv(at)fuzzy(dot)cz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: FILLFACTOR and increasing index |
Date: | 2011-05-11 22:28:43 |
Message-ID: | 4DCB0D9B.5060207@fuzzy.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I've studied the implementation of the btree indexes and how exactly the
fillfactor is used, and in general
- when a page split happens, the process needs to obtain more locks
than with simple insert, which may result in contention with other
processes that modify the index (the same pages)
- the fillfactor is used only for the leaf pages, the rest of the index
does not use it (directly)
So lowering the number of page splits might remove some contention when
there's a lot of processes accessing the same pages.
But that's the theory - I really was not able to come up with a test
that benefits from lower fillfactor. Actually the lower the fillfactor,
the larger the index, which may be a significant issue with huge indexes.
So in your case, I'd probably go with the default fillfactor (90), and
maybe I'd consider even using fillfactor=100, to make the index as dense
as possible.
Anyway I guess the impact of this will be negligible, compared to other
parameters (shared buffers, work_mem, etc.).
regards
Tomas
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua J. Kugler | 2011-05-11 22:46:09 | Re: Urgent Order |
Previous Message | salah jubeh | 2011-05-11 20:18:48 | Re: PGA |