node-mapnik
node-mapnik copied to clipboard
How can we set the statement_timeout to the connection used by mapnik?
Hi,
we are having issues with long queries for the tiles. How could we change the timeout setup?
We need to do it locally to the next sql statement, it would be similar to SET statement_timeout TO XXX; but if I do it with pg library, it will be in another connection.
Is there any option I can add to the settings of Mapnik?
I saw in the documentation that there is a property connect_timeout with 4 by default, but it is not working because my queries takes longer than 2 minutes sometimes.
https://github.com/mapnik/mapnik/wiki/PostGIS
Thanks in advance