node-mapnik icon indicating copy to clipboard operation
node-mapnik copied to clipboard

How can we set the statement_timeout to the connection used by mapnik?

Open patri-badger opened this issue 9 years ago • 0 comments

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

patri-badger avatar Apr 24 '17 18:04 patri-badger