OriginChainDB
Database endpoints

Find slow queries

Read recent queries and their latency, optionally filtering by a minimum duration.

GET /v1/tenants/{tenant}/slow-queries

Investigate reported slow operationsAn empty result covers this collection history, not all past database activity.
  1. Set the duration thresholdChoose the minimum latency to inspect.
  2. Read matching query entriesExamine the recent operations that meet the threshold.
  3. Compare query and latencyUse the evidence to investigate the workload.

Before you start

Use your database bearer token.

Connection setup

Path parameters

FieldTypeRequired
tenantstringRequired

Query parameters

FieldTypeRequired
threshold_msintegerOptional

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Read the result

entries reports observed queries meeting threshold_ms since collection began. An empty list means none were reported under that threshold and history, not that the database has never run slowly.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd