Description
Move the analysis of ExplainMode out of the physical analyzer and into access-mode analysis. An EXPLAIN query should be classified as read-only before execution starts, so that a ReadTransaction can be created before the query is prepared and executed.
Expected behavior
EXPLAIN queries use a ReadTransaction.
- The transaction is created before query execution.
- Existing
EXPLAIN and PROFILE behavior remains unchanged.
Description
Move the analysis of
ExplainModeout of the physical analyzer and into access-mode analysis. AnEXPLAINquery should be classified as read-only before execution starts, so that aReadTransactioncan be created before the query is prepared and executed.Expected behavior
EXPLAINqueries use aReadTransaction.EXPLAINandPROFILEbehavior remains unchanged.