> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tiberostudio.en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/tiberostudio.en/about/sql-editor/sql-plan.md). Agents can also search and read this documentation through its [MCP server](https://docs.tibero.com/tiberostudio.en/~gitbook/mcp).

# SQL Plan

The users can view the execution plan of the created SQL. If The users need to tune the query, The users can do so to create the optimal SQL statement. The execution plan information is read from top to bottom, from inside to outside, starting with the task with the most indentation.

The execution plan is available in two views: Tree and Text.

### Plan Info

<figure><img src="https://content.gitbook.com/content/nNfkYJbwJttSkGBYdvi9/blobs/IBOCiCufRXijQUSFGXfk/image.png" alt=""><figcaption><p>Figure 1. Plan Info</p></figcaption></figure>

The users can check the SQL ID, CHILD NUMBER, HASH VALUE, PLAN HASH VALUE, and executed SQL information related to the plan.

### Tree View

<figure><img src="https://content.gitbook.com/content/nNfkYJbwJttSkGBYdvi9/blobs/RgRrLDCw2YnrkH8Y9R9E/image.png" alt=""><figcaption><p>Figure 2. Tree View</p></figcaption></figure>

It displays the plan information in the form of a tree in the left area, and when The users focus on a specific row, the detailed plan information of the focused row is displayed in the right area.&#x20;

The main columns are as follows.

<table><thead><tr><th width="177.8277587890625" valign="bottom">Name</th><th valign="bottom">Description</th></tr></thead><tbody><tr><td valign="bottom">Operation</td><td valign="bottom">Indicates the specific operation performed by the database.</td></tr><tr><td valign="bottom">Option</td><td valign="bottom">Provides additional details about the operation</td></tr><tr><td valign="bottom">Object</td><td valign="bottom">The database object on which the operation is performed</td></tr><tr><td valign="bottom">Cost</td><td valign="bottom">The relative cost to run the query</td></tr><tr><td valign="bottom">Cardinality</td><td valign="bottom">The number of rows the job is expected to return</td></tr><tr><td valign="bottom">Partition State</td><td valign="bottom">The partition to start scanning</td></tr><tr><td valign="bottom">Partition Stop</td><td valign="bottom">The partition to end the scan on</td></tr><tr><td valign="bottom">CPU Cost</td><td valign="bottom">CPU usage cost</td></tr><tr><td valign="bottom">IO Cost</td><td valign="bottom">Disk I/O cost</td></tr><tr><td valign="bottom">Access Predicate</td><td valign="bottom">Conditions that determine how data is accessed</td></tr><tr><td valign="bottom">Filter Predicate</td><td valign="bottom">Conditions that filter data after it is read</td></tr></tbody></table>

### Text View

<figure><img src="https://content.gitbook.com/content/nNfkYJbwJttSkGBYdvi9/blobs/uJWPQfFfwF018SjYT3X2/image.png" alt=""><figcaption><p>Figure 3. Text View</p></figcaption></figure>

Displays the contents of all plans in the editor as text.

###
