I'm running a query that uses an ID as input paramter.
If I write a hard wired value in the query it takes about 30 seconds. If I pass the same value as a parameter to the SQL it runs about 4 minutes and then I get a gateway timeout.
Has anybody had a similar issue. Any idea how to solve this?
Any hint is very much apreciated.