# SQL Execution Plan (SQL 실행 계획)

쿼리 튜닝이 필요하면 이를 수행하여 최적의 SQL 문장을 작성할 수도 있다. 실행 계획 정보는 위에서 아래로, 안쪽에서 바깥쪽으로 읽고 들여쓰기가 가장 많이 된 작업부터 시작하여 읽는다.

실행 계획은 Tree 형태와 Text 형태 두 가지의 View를 제공한다.

## Plan Info

<figure><img src="/files/hOHeZZEFJVuimY42FLr0" alt=""><figcaption><p>Plan Info</p></figcaption></figure>

SQL Plan(SQL 실행 계획)과 관련한 SQL ID, CHILD NUMBER, HASH VALUE, PLAN HASH VALUE와 수행한 SQL 쿼리문의 정보를 확인할 수 있다.

## Text View

<figure><img src="/files/EGKaZebQD4X5h3jaUNwl" alt=""><figcaption><p>Text View</p></figcaption></figure>

모든 SQL Plan(SQL 실행 계획)의 내용을 Text 형태로 에디터에 표시한다.

## Tree View

<figure><img src="/files/TKGDisqpP1LBWKOn956A" alt=""><figcaption><p>Tree View</p></figcaption></figure>

좌측 영역에 SQL Plan(SQL 실행 계획) 정보를 Tree 형태로 표시하고 특정 Row에 포커스를 하면 포커스된 Row에 대한 상세 Plan 정보를 우측 영역에 표시한다. 또한 Object 컬럼의 링크 더블클릭을 통해 해당 오브젝트의 Properties  탭을 열 수 있다.

표시되는 주요 컬럼들은 다음과 같다.

| 이름               | 설명                           |
| ---------------- | ---------------------------- |
| Operation        | 데이터베이스가 수행하는 구체적인 작업을 나타낸다.  |
| Option           | Operation에 대한 추가적인 세부 정보를 제공 |
| Object           | 작업이 수행되는 데이터베이스 객체           |
| Cost             | 쿼리 실행에 필요한 상대적인 비용           |
| Cardinality      | 작업이 반환할 것으로 예상되는 행의 수        |
| Partition Start  | 스캔을 시작할 파티션                  |
| Partition Stop   | 스캔을 종료할 파티션                  |
| CPU Cost         | CPU 사용 비용                    |
| IO Cost          | 디스크 I/O 비용                   |
| Access Predicate | 데이터에 접근하는 방법을 결정하는 조건        |
| Filter Predicate | 데이터를 읽은 후 필터링하는 조건           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tibero.com/tiberostudio/about/sql-editor/sql-execution-plan-sql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
