# Database Timeout Settings - system.db.runQuery() via gateway scope

**URL:** <https://forum.inductiveautomation.com/t/database-timeout-settings-system-db-runquery-via-gateway-scope/97411>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [October 17, 2024, 5:10pm UTC](https://forum.inductiveautomation.com/t/database-timeout-settings-system-db-runquery-via-gateway-scope/97411 "2024-10-17T17:10:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [October 17, 2024, 5:10pm UTC](https://forum.inductiveautomation.com/t/database-timeout-settings-system-db-runquery-via-gateway-scope/97411/1 "2024-10-17T17:10:43Z")

</div>

I'm noticing that timeouts occur sometimes with

system.db.runQuery(myQuery)

It looks like under Project Properties - Vision - there is a read timeout setting that might work for increasing the timeout setting above one minute. Would this setting also work for a gateway-scoped script that uses system.db.runQuery()

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/1219a627c440094a2e5d11cd7011ad8caf19c226.png)

One more thing I'm also noticing - it looks like system.db.runUpdateQuery() doesn't have a timeout setting, or if it does have a timeout - it's many hours.

Basically I'm just looking for a way to increase the timeout with system.db.runQuery() for a gateway scoped script! Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 17, 2024, 5:16pm UTC](https://forum.inductiveautomation.com/t/database-timeout-settings-system-db-runquery-via-gateway-scope/97411/2 "2024-10-17T17:16:59Z")

</div>

Designer/Vision timeouts do not apply to DB queries that are entirely in gateway scope. The DB query will run and run and run. (Limited only by the DB connection settings.)
