From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | "postgres hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new vacuum is slower for small tables |
Date: | 2008-12-08 12:45:53 |
Message-ID: | 87y6yq4yym.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> Hello,
>
> I did small tests and I found so for small tables (less 1000 rows)
> VACUUM based on visibility maps are slower than old implementation
>
> it is about 5ms X 20ms
Hm, Presumably this is on a machine where the visibility map is entirely in
cache too. On a busy machine that's stealing a page from other table's cache.
The conservative thing to do would be to avoid creating a visibility map for
tables unless they're large enough that it's incontrovertibly enough of a
gain. Especially since speeding up short-lived vacuums doesn't seem terribly
interesting.
Without index-only scans it probably doesn't make much sense to create the
visibility map until we hit something like 32 pages or so. Vacuum should be
able to handle that many pages so fast that speeding it up seems pointless.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's 24x7 Postgres support!
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2008-12-08 12:53:48 | Re: ALTER composite type does not work, but ALTER TABLE which ROWTYPE is used as a type - works fine |
Previous Message | Pavel Stehule | 2008-12-08 12:31:38 | new vacuum is slower for small tables |