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

remove population subqueries #1318

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Jun 18, 2019

DRAFT, for now, this will require updates to the whosonfirst importer (or pelias/model?) before merging in order to ensure no breaking changes.

This PR removes the population subqueries, as per the discussion in pelias/openstreetmap#493 (comment) we could copy population info to the popularity field for admin areas and have one less subquery.

There is some momentum building at the moment to improve popularity scoring (which was always enabled but rarely used).
If we decide to go down that path then this PR will remove all the population subqueries.

There should be a PR in pelias/whosonfirst or pelias/model before this is merged which is responsible for setting the popularity.

Note: if the schema and API are out-of-sync then admin areas could receive a 'double-boost' until this code is deployed, if that is a concern then it might be better to 'move' population info to popularity (setting population to 0) for a short migration period. Worth checking if there are differences in boost values between the fields in any of the defaults.

Finally, if we truly never need to search on population then pelias/schema could be updated to ensure that the field isn't indexed.

@missinglink missinglink requested a review from orangejulius June 18, 2019 11:53
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.

1 participant