Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize scoring vector tiles #553

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

mvandenburgh
Copy link
Member

@mvandenburgh mvandenburgh commented Nov 21, 2024

This removes the expensive color_code subquery and adds a new endpoint that returns the color mapping by itself. The endpoint is cached, but even on cache misses it is much faster than the previous method.

I've updated the client to handle this new approach. This required reworking how the color_code MapLibre filter worked quite a bit.

@mvandenburgh mvandenburgh force-pushed the optimize-vector-tiles-color-coding-scoring branch 2 times, most recently from 9c7f9d2 to 65f374a Compare November 21, 2024 18:49
@mvandenburgh mvandenburgh marked this pull request as ready for review November 21, 2024 18:51
@mvandenburgh
Copy link
Member Author

Oh, I wasn't paying attention to CI. I'll push a fix for those

@mvandenburgh mvandenburgh force-pushed the optimize-vector-tiles-color-coding-scoring branch 3 times, most recently from f37ac13 to 2621b3d Compare November 22, 2024 01:40
This removes the expensive `color_code` subquery and adds a new endpoint
that returns the color mapping by itself. The endpoint is cached, but
even on cache misses it is much faster than the previous method.
@mvandenburgh mvandenburgh force-pushed the optimize-vector-tiles-color-coding-scoring branch from 2621b3d to e027d3b Compare November 22, 2024 02:01
@mvandenburgh
Copy link
Member Author

@BryonLewis I added a fix for the color code simple/detailed filter. Can you try this out again?

Copy link
Contributor

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled, cleared my cache and it looks 'more' like what I expect the detailed/simple views to look like.

@mvandenburgh mvandenburgh merged commit 6ed41d3 into main Nov 22, 2024
8 checks passed
@mvandenburgh mvandenburgh deleted the optimize-vector-tiles-color-coding-scoring branch November 22, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants