Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions documentation/configuration/cairo-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,39 @@ The locale used to handle timestamp types.

When `false`, disables the `reload_config()` SQL function.

### query.timeout.sec
### query.timeout

- **Default**: `60`
- **Default**: `60s`
- **Reloadable**: no

A global timeout in seconds for long-running queries. Per-query overrides are
available via the HTTP header
A global timeout for long-running queries, given as a duration: `500ms`, `120s`,
`2m` and `1h` are all valid, and a plain number is read as milliseconds.

This key replaces `query.timeout.sec`. When both are set, `query.timeout` takes
precedence; when neither is set, queries time out after 60 seconds.

Per-query overrides are available via the HTTP header
[`Statement-Timeout`](/docs/query/rest-api/#headers) or the Postgres
[`options`](/docs/query/pgwire/overview/)
connection property.

### query.timeout.sec

- **Default**: `60`
- **Reloadable**: no

:::note

`query.timeout.sec` is deprecated. Use `query.timeout` instead, which takes a
duration rather than a whole number of seconds. QuestDB reports this key as a
deprecation advisory during config validation at startup.

:::

A global timeout in seconds for long-running queries. When `query.timeout` is
also set, it takes precedence and this key is ignored. Per-query overrides work
the same as for `query.timeout`.

## Commit and write behavior

### cairo.commit.mode
Expand Down
Loading