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

Add an index for names at low zoom #4617

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Jul 22, 2022

One of the slowest queries at zoom 5 is for the text-poly-low-zoom
layer. This index speeds it up, and similar queries up substantially.

No rendering changes.

This index brings a text_poly_low_zoom query down from 120s-31s warm and 6.5s hot to 825ms hot, and improves the experience when developing low zooms.

Index build time on my system is 6:35, and index size is 31MB.

One of the slowest queries at zoom 5 is for the text-poly-low-zoom
layer. This index speeds it up, and similar queries up substantially.
Copy link
Collaborator

@sommerluk sommerluk left a comment

Choose a reason for hiding this comment

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

Honestly, I do not know much about databases. But I tested this, and the speed improves a lot at z5. And that's great!

@pnorman pnorman merged commit 1ec1678 into gravitystorm:master Sep 2, 2022
@pnorman pnorman deleted the z6_name_index branch September 2, 2022 21:21
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