Slow import on Postgres 16.0 #3395
-
Hello, I am currently upgrading my postgres database from Postgres 14.2, postgis 3.2 to Postgres 16, postgis 3.4 in my k8s cluster(I switch from Kartoza/postgis:14-3.2 to Kartoza/postgis:16-3.4 to be precise). After trying a nominatim import of https://download.geofabrik.de/europe/france/midi-pyrenees-latest.osm.pbf with the new db I saw a huge drop of performance. See logs below: rank 25 with the new db (Postgres 16, postgis 3.4)
rank 25 with the old db (Postgres 14.2, postgis 3.2)
I was wondering if anyone faced such drop of performance ? To precise I used the same postgres settings in both instances of the postgres db. Find it below:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
One of our 4 production servers on osm.org currently runs PostgreSQL 16 and there were no notable differences in import time. On the contrary, it's the one server which shows the least strain under high load. The most notable differences in the configuration:
However, our machine has superfast NVME SSD. So these values are not necessarily the best for a cloud setup. And there is:
Nominatim should set them correctly these days on a connection base. If they make a difference for you, I'd consider it something that needs improvement in the code. |
Beta Was this translation helpful? Give feedback.
-
Thanks for you answer. I tried your settings but it do not changed anything. After further investigation it seems to come from postgis. I downgrade postgis from version 3.4 to 3.3 and it worked perfectly. If I found more time I will continue to investigate on it but for now I will use postgis 3.3. |
Beta Was this translation helpful? Give feedback.
-
There is one known issue with Postgis 3.4 with ST_Project. That was fixed in 7c79b07. This fix should be part of Nominatim 4.4 and 4.3 but not earlier versions of 4.2. So please make sure you use the latest version. |
Beta Was this translation helpful? Give feedback.
-
Ok right it works now. I upgraded nominatim from 4.0.0 to 4.3.2. Thanks for your time. |
Beta Was this translation helpful? Give feedback.
There is one known issue with Postgis 3.4 with ST_Project. That was fixed in 7c79b07. This fix should be part of Nominatim 4.4 and 4.3 but not earlier versions of 4.2. So please make sure you use the latest version.