Limits
Every limit in one place, with the page that explains it. The numbers are
the defaults of a server you host yourself. The hosted october (https://october.sombra.so)
runs with the defaults except where a row says otherwise. A server's owner
can change most of them.
- Queries and the API
- Writes
- Sign-in
- Sign-in email
- Request body size
- Tenants, orgs and accounts
- Admin API data reads
Queries and the API#
| Limit | Value | Refused with | Explained in |
|---|---|---|---|
| Query depth | 10 nested fields | BAD_USER_INPUT, limit maxDepth |
api-errors.md |
| Query cost | 10,000, estimated before it runs | BAD_USER_INPUT, limit maxCost |
api-errors.md |
| Rate limit, per caller | a bucket of 20,000 points, refilled at 1,000 a second (empty to full in 20 seconds); the signed-in user's, else the client address's | RATE_LIMITED, retryAfterMs |
api-errors.md |
| Page size | first is at most 100; a larger value returns 100 |
no error | api-queries.md |
| Entities one page checks | 1,000; a page can then hold fewer than first items, with hasNextPage true |
no error: follow endCursor |
api-queries.md |
| Nested counts | 1,000 entities checked per parent; past that count is a lower bound |
capped is true |
api-queries.md |
| Aggregate scan | 5,000 entities per aggregate, oldest first | capped is true |
api-queries.md |
| History | the newest 1,000 revisions for revisionCount; 1,000 revisions checked per page |
no error | api-queries.md |
| Open live streams | 8 per user, across all their tabs and devices | 429 too-many-subscriptions |
api-live.md |
| Request body | 8 MB (see below) | 413 |
below |
Writes#
| Limit | Value | Refused with | Explained in |
|---|---|---|---|
| Ids in one batch delete | 100 | BAD_USER_INPUT, limit maxBatchSize |
api-mutations.md |
| Entities one delete removes through cascades | 1,000 | BAD_USER_INPUT, limit maxCascade; nothing is deleted |
schema-attributes.md |
| Write cost | 10 points per mutation field, and per distinct id of a batch delete | counts against the rate limit | api-errors.md |
Idempotency-Key |
1 to 255 printable ASCII characters, no spaces | 400 |
api-mutations.md |
| A regular expression in a constraint | reads at most 1,000,000 characters, backtracking included | the match fails | schema.md |
Sign-in#
| Limit | Value | Explained in |
|---|---|---|
| A sign-in code | six digits, valid for 10 minutes | api-sign-in.md |
| A new code for one address | not within 30 seconds of the last | api-sign-in.md |
| Wrong guesses | 5 wrong codes revoke the address's codes; 10 code checks per address per tenant per UTC day | api-sign-in.md |
| An access token | 15 minutes | api-sign-in.md |
| A sign-in's refresh tokens | 30 days at most; each refresh token works once | api-sign-in.md |
| An org invite | 7 days | cli-admin-api.md |
Sign-in email#
Sign-in codes are real email, so they have caps. The numbers below are the
defaults. Past one, send_magic_code answers 429 with its limit and
Retry-After.
| Cap | Value |
|---|---|
| per address, per hour | 5 |
| per client address, per hour | 10 |
| codes per tenant, per 24 hours | 200 |
| real emails per tenant, per UTC day | 100 |
| real emails per new tenant, per UTC day, in its first 7 days | 20 |
| real emails from every tenant of one account, together, per UTC day | 200 |
| the server, per UTC day | set by the server's mail quota |
api-sign-in.md explains them and the limit values.
A tenant whose emails bounce or are reported as spam too often has its
email turned off.
Request body size#
The server's HTTP layer (http-kit, behind Pedestal) takes a request body of up to
8 MB. A larger one is refused with 413 before any october code runs.
There is no limit of october's own on the size of a request, so what
else bounds a write is the schema: a string attribute's :max, and the
query cost. october stores no files: send a link to where a file lives, not its
bytes.
Tenants, orgs and accounts#
| Limit | Value |
|---|---|
| Live tenants per org, on the hosted october | 1 for now |
| Orgs one account owns, on the hosted october | 2 |
| Tenants created per account per day | 3 |
| Tenants an account administers, on a server without orgs | set by the server (5 unless it sets another) |
A tenant belongs to an org, and an org has room for its limit. Past it, a
create is refused with 403 org-full. An org's owner can delete a tenant
in the dashboard, which frees its place. On a server without orgs the limit is the account's:
403 tenant-limit. cli.md explains who may create and delete
tenants. The hosted service is free during the alpha: see /pricing.
Admin API data reads#
Reading a tenant's data is bounded:
| Limit | Value | Refused with |
|---|---|---|
| Page size | first at most 100 (50 by default) |
400 |
| Entities a filtered page examines | 5,000 | no error: partial is true; follow next |
| Counts in the overview | stop at 10,000 | capped is true |
| Refs that point at one entity | counted to 1,000 per field, the first 20 ids listed | capped is true |
| Values of a many ref in a list item | 20 | the field is named in truncated |
| History | 5,000 values read per entity; at most 50 revisions a page (20 by default) | partial is true |
| Rate limit, per admin | a bucket of 120 requests, refilled at 2 a second | 429 rate-limited, Retry-After |