From: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: performance regression when filling in a table |
Date: | 2019-04-30 10:32:13 |
Message-ID: | alpine.DEB.2.21.1904301134340.24513@lancre |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello Andres,
>> ## pg 11.2 done in 31.51 s
>> ## pg 12devel (cd3e2746) real 0m38.695s
>>
>> What change could explain such a significant performance regression?
>
> I think the pre-release packages have had assertions enabled at some
> point. I suggest checking that. If it's not that, profiles would be
> helpful.
Thanks for the pointer.
After some more tests based on versions compiled from sources, the
situation is different, and I was (maybe) mostly identifying another
effect not related to postgres version.
The effect is that the first generation seems to take more time, but
dropping the table and regenerating again much less, with a typical 40%
performance improvement between first and second run, independently of the
version. The reported figures above where comparisons between first for
pg12 and second or later for pg11.
So I was wrong, there is no significant performance regression per se,
the two versions behave mostly the same.
I'm interested if someone has an explanation about why the first run is so
bad or others are so good. My wide guess is that there is some space reuse
under the hood, although I do not know enough about the details to
confirm.
A few relatively bad news nevertheless:
Performances are quite unstable, with index generation on the same scale
100 data taking anything from 6 to 15 seconds over runs.
Doing a VACUUM and checksums interact badly: vacuum time jumps from 3
seconds to 30 seconds:-(
--
Fabien.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Banck | 2019-04-30 13:07:43 | Re: [Patch] Base backups and random or zero pageheaders |
Previous Message | Rob | 2019-04-30 09:43:20 | Re: CHAR vs NVARCHAR vs TEXT performance |