Execution Plan

From BaseX Documentation

Jump to: navigation, search

This article is part of the Advanced User's Guide. For each execution of a query, BaseX creates an execution plan. This execution plan shows you each step of the query, so that you can evaluate your query and analyse if it accesses any indexes or not. You can activate the execution plan by activating the XMLPLAN or DOTPLAN options.

[edit] Examples

[edit] Execution plan for original and optimized query execution

Query: for $item in doc(’xmark’)/descendant::item where $item/payment = ’Creditcard’ return $item

Optimized query: doc(’xmark’)/descendant::item[payment = ’Creditcard’]

Execution plan:

Replacing XQuery with equivalent XPath expressions

[edit] Execution plan for query execution with full-text index access and without

Query: //MEDIUM/LAN[text() contains text "dt"]

Execution plan:

Query Plan 2
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export