Performance Debugging
To see the query plans that Kùzu uses, you can
type EXPLAIN
or PROFILE
before your query. The purpose of doing
this is to debug the performance of the system on a particular
query. Both commands print the query plan so that you can see the sequence of operators and execution steps.
EXPLAIN
only shows the plan Kùzu’s query compiler/optimizer produced, with zeroes for each execution time.PROFILE
runs the query plan, produces the output, and collects runtime information for each operator in the plan, which will be shown inside the operators.
Below is a very simple example run from the CLI.