SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Detailed Query Plan and Indexes

Generate and access a detailed html query plan. Create indexes on columns.

Overview

🎓 beginner 15 min. SAP HANA Dynamic TieringBeginnerSAP HANASAP HANA StudioBig DataSql

You will learn

  • โœ”Accessing a more detailed HTML query plan through SAP HANA Studio.
  • โœ”Creating indexes on table columns to improve query performance.
  • โœ”Analyzing the impact of indexes on query plans.
Unknown U Unknown November 1, 2022
Created by April 10, 2017
Contributors

Prerequisites

Prerequisites

Steps

Next Steps

  • Tutorials:

Time to Complete

20 Min.


Step 1 Enabling the Generation of a Query Plan
โ€”

In addition to the graphical query plan available through the PlanViz perspective, you can access an even more detailed query plan for the Dynamic Tiering portion of the query. In order to do this we will need to turn on a debug level of tracing.

In SAP HANA Studio, go to SAP HANA Administration Console. In the Systems tab on the left, double click on the system you are working with.

Open Overview
Open Overview

After the administration console opens, go to the Trace Configuration tab.

Trace Configuration
Trace Configuration

Click on the pencil icon under Database Trace to edit debug level.

Edit Database Trace
Edit Database Trace

A window should pop up where you need to click on the drop-down icon beside INDEXSERVER. Check the box for Show All Components on the bottom left.

Find Configuration
Find Configuration

You should now be able to see the field fedtrace under INDEXSERVER. Alternatively, you can also enter “fedtrace” in the type filter search box to find the field. In this row, click under the System Trace Level and select the option DEBUG and then click Finish.

Change fedtrace
Change fedtrace

Step 2 Generate and Open a Detailed Plan by Running a Query
+
Step 3 Creating an Index
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Enabling the Generation of a Query Plan 2. Generate and Open a Detailed Plan by Running a Query 3. Creating an Index

Learn more →