Get Slow Queries
Get slow queries and their filter patterns.
Identifies queries exceeding a latency threshold and shows which metadata fields they're filtering on, helping pinpoint optimization opportunities.
Use Cases:
- Troubleshoot slow queries
- Identify unindexed fields causing slowdowns
- Debug performance issues
- Optimize query patterns
Response Includes:
- Query details (retriever, inputs, latency)
- Results count
- Metadata fields being filtered
- Full query context
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/namespaces/queries/slow?latency_threshold_ms=1000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
Query parameters
Days of history to analyze
Days of history to analyze
Latency threshold in ms
Latency threshold in ms
Maximum queries to return
Maximum queries to return
Response
Successful Response
Changes
Changed in 2 of the 29 revisions of this API.3
- ○
added the required property
returned_countto the response with the200statusresponse-required-property-added
- ○
added the required property
total_is_exactto the response with the200statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○