Type alias QueryPlanCacheEntry

QueryPlanCacheEntry: {
    bindVars: Record<string, string>;
    created: string;
    dataSources: string[];
    fullCount: boolean;
    hash: string;
    hits: number;
    memoryUsage: number;
    query: string;
    queryHash: number;
}

Metadata for an entry in the AQL execution plan cache (ArangoDB 3.12.4 and later). The execution plan itself is not included.

See databases.Database#listQueryPlanCacheEntries.

Type declaration

  • bindVars: Record<string, string>

    Collection bind parameters used in the query. Value bind parameters are excluded because they can vary when reusing a cached plan.

  • created: string

    Date and time the entry was created as an ISO 8601 timestamp.

  • dataSources: string[]

    Collections and Views involved in the query.

  • fullCount: boolean

    Value of the query's fullCount option.

  • hash: string

    Opaque plan-cache key, matching the planCacheKey returned on a cache hit.

  • hits: number

    Number of times the cached plan has been reused.

  • memoryUsage: number

    Memory used by the cache entry in bytes.

  • query: string

    Query string.

  • queryHash: number

    Numeric hash of the query string. Use hash for exact cache-entry identity.