Indexes and constraints
Speed up queries and keep data valid with indexes, required and unique columns and defaults.
Indexes
- Turn on Index for a column in the column menu.
- Columns used to filter, sort or group in any view are indexed too.
- Up to 16 indexes per Database. Multi-select and Files columns are not indexed.
Constraints
| Constraint | Effect |
|---|---|
| Required | Rejects rows where the cell is empty. |
| Unique | Rejects duplicates. Empty cells do not count as duplicates. |
| Default value | Fills the cell of new rows that leave it empty. |
Before a constraint is turned on, existing data is checked. A write that violates a constraint fails with 409:
{ "error": "…", "code": "CONSTRAINT", "constraint": { … } }