-
Notifications
You must be signed in to change notification settings - Fork 12
Migrate to a well known PostGIS docker base #13
Conversation
…r ENV, delete dev packages for PostGIS build dependencies
Removed most of the custom building, leaving only the osml10n extension. Bump version of osml10n to 2.5.5
@nyurik Can you re-create docker image and push to docker-hub? |
@smellman thx for the update - my docker hub settings were incorrect - now i fixed it, it should auto-build whenever the base changes. |
Heads up: Per @Komzpa, PostGIS 2.5 might be slower with MVT geometries than the dev version that is currently in master, but at the same time Darafei said that 2.5 fixes incorrect MVT geometry handling (looses peaces of geometries). The same issue also applies to the official PostGIS 2.4). PostGIS 3.0 should fix that... when its released in half a year (?) -- 3.0 allows PostGIS to use |
@nyurik I tested PostGIS svn-trunk with wagyu and it still slow in openmaptiles. |
Is the source of slowness identified? |
Also, It is not PostgreSQL issue. |
running a PREPARE'd query first five times it uses normal planning and then switches to generic plan if costs say it's not worth planning better. Tile 0/0/0 performs seq scan of everything so it caches that? https://www.postgresql.org/docs/9.6/sql-prepare.html
|
I wonder if this could be a case of over-optimization -- it doesn't matter how fast a single 0/0/0 tile generates. It is more important to have average generation to be as good or better than before, and we need to do some QA for that. |
I tested with PostgreSQL 9.6 + PostGIS 2.4.0, I get slowness issue. |
@nyurik @Komzpa |
My previous commit run well, but I make other commit by my friend advice. |
hmm, my last commit was bad. |
@smellman can you file a ticket on PostGIS trac with these findings? |
@Komzpa https://trac.osgeo.org/postgis/ticket/4362#ticket I just write a ticket. I tried to write English:-) |
I put in a small change, I don't necessarily expect it to alter this case, I'm still wrapping my head around what's changing the plan. Clearly the index scans are not a great idea, but the selectivity estimate must be low enough for the planner to thing they are OK. It's such a huge oddball of a query though, I'm loath to muck with things much without understanding where the selectivity estimate is going wrong relative to the data. For each table, can you compare the estimate (
to see where we have particularly bad estimates? |
Function can't calculate.
View and table can calculate but
_postgis_selectivity raise error in view and table. |
@pramsey I can run _postgis_selectivity without last 2, is it OK?
|
@MartinMikita this PR has been pending for a while, and should allow us to move forward, especially considering that very soon PostGIS plans to release v3.0, which will include greatly improved ST_AsMVT tile generation performance. If someone is using the current docker build, they can continue using via specific version tag. |
Kind reminder for @MartinMikita |
This PR will be validated on our side before merging into the code. |
This repository has been moved to openmaptiles-tools as See also openmaptiles/openmaptiles-tools#252 |
Continued excellent work by @smellman.
Now the container is based on mdillon/postgis:11, and only adds the osml10n extension.
Also a minor version bump to osml10n 2.5.5
Note This PR has already been published on Docker Hub under sophox/postgis (
:latest
is PG 11, and also:9.6
) -- feel free to use it directly from there.