Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Project status #9

Open
kszafran opened this issue May 6, 2020 · 4 comments
Open

Project status #9

kszafran opened this issue May 6, 2020 · 4 comments

Comments

@kszafran
Copy link

kszafran commented May 6, 2020

Hello @gdey and @ARolek!

In my company we're currently investigating Tegola to serve vector tiles from our PostGIS database. I wonder if you could update me on the finding from this "experiment". Did you find for example performance improvements by using PostGIS itself to simplify geometries and build MVT tiles? Are there plans on merging these changes into the main Tegola repository?

Thanks!

@ARolek
Copy link
Member

ARolek commented May 6, 2020

@kszafran great to hear! This experiment was a success and it's planned to make its way back into the main tegola repo. Yesterday I cut a release (v0.11.0) and I'm looking at migrating this code into v0.12.0. Any interest in helping with the migration or testing?

@kszafran
Copy link
Author

kszafran commented May 7, 2020

Hello. We'll at least test this version (tegola-postgis). So far the performance we got out of tegola was abysmal and we're experimenting trying to understand why and how to improve it. One challenge is that our data is constantly changing. I was thinking that we could for example cache lower zoom levels, where the changes wouldn't be that significant, and not cache higher zoom levels at all. That's what we still need to experiment with.

@ARolek
Copy link
Member

ARolek commented May 8, 2020

@kszafran there are a ton of strategies for performance tuning but it's largely situational. The first place to look is at geometry indexes. Do you have those in place? One way to check if the issue is on tegola's side or at the database is to use run tegola with: TEGOLA_SQL_DEBUG=EXECUTE_SQL tegola --config=/path/to/conf.toml

This will output the SQL that tegola is using. You can then run the query directly at your database and see how long the query is taking.

I'm happy to run through other performance suggestions too. If you're interested in talking real time you can join our Slack: http://slack.go-spatial.org/

@gdey
Copy link
Member

gdey commented May 21, 2020

FYI: here is the pull request to merge this experiment into the mainline.

go-spatial/tegola#687

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants