shlomi noach wrote:
The datasource2 query takes a long time, by which the datasource2 connection turns invalid.
Shouldn't that be the issue to investigate and find a solution for? If the query is as slow as molasses, giving it a new connection won't make it any faster.