0% found this document useful (0 votes)
42 views

Index Creation Flowchart: A Flowchart To Help You Know When and What Type of Index To Create in Oracle

This document provides a flowchart to help determine when and what type of index to create in Oracle databases. The flowchart guides the user to analyze a column in their table or query to decide if an index on that column could improve query performance. It suggests creating a B-tree index for columns with high selectivity, or a bitmap index for low selectivity columns. Following the steps in the flowchart provides a starting point for determining useful indexes without indexing all columns.

Uploaded by

Sreeram Madala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Index Creation Flowchart: A Flowchart To Help You Know When and What Type of Index To Create in Oracle

This document provides a flowchart to help determine when and what type of index to create in Oracle databases. The flowchart guides the user to analyze a column in their table or query to decide if an index on that column could improve query performance. It suggests creating a B-tree index for columns with high selectivity, or a bitmap index for low selectivity columns. Following the steps in the flowchart provides a starting point for determining useful indexes without indexing all columns.

Uploaded by

Sreeram Madala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

 

Index Creation 
Flowchart 
 

A flowchart to help you know when and what type of 


index to create in Oracle 
 

Ben Brumm 
www.databasestar.com 

 
 

Index Creation Flowchart 

Welcome! 

In Oracle, creating indexes can often, but not always, speed up a SELECT query. Indexes also slow 
down queries that update data, so we don’t want to create indexes on everything! 

How do we know which column or columns are good to create indexes on? 

We can analyse a few things about our queries and tables to see if it will be helpful to create a index. 

I’ve created a flowchart to help you decide. 

To use the flowchart, look at your table, columns, or query. Choose a column, and go through this 
flowchart with that column in mind. 

Once you reach the end of the flowchart, consider creating the index suggested. 

The suggested index is not guaranteed to improve your query, as there are a lot of factors involved, 
but it’s a good place to start when working out what index to create. 

The flowchart mentions a term called selectivity. Selectivity on a table is the ratio of the number of 
distinct values compared to the total number of rows in a table. The higher the selectivity, the more 
unique values it has, and the better it would perform using a B-tree index. Lower selectivity columns 
often work well with bitmap indexes. 

Now, let’s look at the flowchart! 

   

www.DatabaseStar.com 
 
 

Index Creation Flowchart 

www.DatabaseStar.com 
 

You might also like