HTTP interface for the query plan cache
The query plan cache HTTP API lets you list the AQL execution plans that are in the cache as well as clear the cache
Introduced in: v3.12.4
To cache execution plans for AQL queries as well as to utilize cached plans,
set the usePlanCache
query option to true
when issuing a query. See
HTTP interfaces for AQL queries for details
and The execution plan cache for AQL queries
for general information about the feature.
List the entries of the AQL query plan cache
Returns an array containing information about each AQL execution plan currently stored in the cache of the selected database.
This requires read privileges for the current database. In addition, only those query plans are returned for which the current user has at least read permissions on all collections and Views included in the query.
Retrieve the entries stored in the AQL query plan cache of the current database:
curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/query-plan-cache'
Clear the AQL query plan cache
Clears all execution plans stored in the AQL query plan cache for the current database.
This requires write privileges for the current database.
Clear the AQL query plan cache of the current database:
curl -X DELETE --header 'accept: application/json' --dump - 'http://localhost:8529/_api/query-plan-cache'