-
Notifications
You must be signed in to change notification settings - Fork 19
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
Reduce excessive hstore queries #142
Comments
There are two requests coming from the
I'd tend towards option 2 because it's less hacky and would also reduce the postgres connection overhead (and solve #141 at the same time). |
👍
I misspoke earlier when I mentioned this. The way we transport the hstore columns is the same for these tables (via On a related note, we should ensure that these both either return back utf-8 encoded strings or unicode. I think going through the driver decodes to unicode, otherwise we get them back as utf-8. At some point the downstream code assumed utf-8 (iirc some of the formatters?) so the code ensures that they are utf-8 now for |
Yea, I was surprised to see that the default for |
Related: tilezen/vector-datasource#1130, which links to tilezen/vector-datasource#1129. |
Looking through the connection pool stuff with Rob, it looks like we can call |
Sure, we can close this. New Relic isn't giving me the stats that would confirm this, but our changes in 145 will help for sure. |
When profiling tile generation with New Relic we found that we're making 2
hstore
related requests when we should just be making 1. Each DB request slows down tile generation, less would be better!Complication? Right now we have two different hstore queries related to OpenStreetMap and Who's On First (those probably need to be standardized).
The text was updated successfully, but these errors were encountered: