Where are you seeing this and what's the message? There are different timeouts. Gateway could mean a load balancer. But there is a "query timeout" that's 5M by default. How to change that depends on how/where you're submitting the query and some other details... Eg, you might just set
timeout
in the
query context.