Analytics
Analytics - Retrievers

Get Slowest Queries

Changed on

Get slowest queries for troubleshooting.

Identifies slowest-performing queries for optimization:

  • Query text
  • Execution time
  • Result counts
  • Stage breakdown

Use Cases:

  • Identify problematic queries
  • Debug performance issues
  • Optimize query patterns
  • User experience improvements

Example:

curl -X GET "https://api.mixpeek.com/v1/analytics/retrievers/ret_abc123/slow-queries?limit=10&hours=24" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Namespace: your-namespace"
get/v1/analytics/retrievers/{retriever_id}/slow-queries

Request

  • Base URL: https://api.mixpeek.com
  • URL: https://api.mixpeek.com/v1/analytics/retrievers/{retriever_id}/slow-queries
  • Auth: HTTP bearer and API key in header X-Namespace

Path parameters

retriever_idstring required

Query parameters

limitinteger

Number of queries to return

hoursinteger

Hours of history

Response

Successful Response

object[] required

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the endpoint scheme security BearerAuth AND NamespaceHeader was added to the API