Data API
Settings
Row cap, statement timeout and connection budget of a branch's data API.
| Setting | Default | Min | Max |
|---|---|---|---|
max_rows | 1000 | 1 | 100000 |
statement_timeout_ms | 8000 | 100 | 120000 |
max_connections | 5 | 1 | 50 |
Change them with PATCH /v1/databases/{id}, or in Studio's database settings. They apply to every database the branch serves.
max_rowscaps the rows aselectreturns (alimitabove it is clamped), and the rows a write'sreturningreturns.statement_timeout_msalso sets Postgres'stransaction_timeout, so it bounds the whole request: a batch of 50 operations shares one timeout, not 50. A request past it answers 504timeout.max_connectionsis per branch: one budget shared by that branch's database pools.default_schemais per Postgres database (publicby default). See Serving more databases.
Every setting takes up to 60 seconds to take effect (the connection-info cache).