pelias / placeholder

stand-alone coarse geocoder
https://placeholder.demo.geocode.earth
MIT License
314 stars 35 forks source link

rewrite queries for performance #219

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

following on from https://github.com/pelias/placeholder/pull/218 this PR rewrites the queries again to help nudge the query planner in the right direction.

previously it didn't really matter if the $subject matching happened in the ON or a WHERE condition, with the additional matching condition I think its better to have it in the ON.