0% found this document useful (0 votes)
13 views5 pages

Index

Uploaded by

rajkumar11mech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

Index

Uploaded by

rajkumar11mech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Index C ind schema obs

Index is a object that associated with table table cluster

It will reduce Ilo operations life


tospeed up the Query execution process

cleared by index
Go the performanceissue
of
Data Dictionary user indexes
table user ind columns

index
Types of user indexes Ionian
1 uniqueness
nonunique
non Uni Que
cositmaps
unique
get created while B Tree indexcase
Balancedindex
creating pus on index as
Bitmap
Function Based index
I
Reverse key Index
Clusteredindex
Index organizedtable

ENABLE
DISABLE
ALTER
REBUILD N
CREATE É Inr DROP
B Tree index
Balancedindex
Default Ascorder
Created on highcardinalitycolumn

58
101 150
151 200

0 no 51 60 101 no 151 160


20 61 70 in 120 161 170

jiff I N'T
a 30
a.io inns no

É TF É
IT Is EBE É
s ES Be
IE É BE IIB I BE E
whereemployee ia 6
0 50
101150
151200

o no no no is too

ÉIIIIFY.F
20 in no in no

jiff
tt
I ÉÉ
o so 200

IF I
Table
o

CREATE INDEX Lind names


on table name column name
CREATE Index emp ind
on employees emp ids

Bit map index


created on
acidity column
no of possiblevalues
cardinality I
Tno.g.ua
created on columns like genderCnn e often ed
parspord arai Cy N

the index stored


employee name gender
get

I
Rakesh M
Neena F
F
Ram M
Rakesh 1 O
Jeni F Neena o s
gonna 1
Jeni o
Saravanan

Select Fromemployees where gender F's


M
Rakesh
Neena
Ram i o
Jeni
Saravanan I
Noof rows in a table no of rows in a index
Bitmap Index will be faster than B Treeindex became
herethere is no rootbranch or leaf line structureinstead
of that simple scan will happen
IP OLAI
maximum used in
X
Bitmap Dial projects
C o Dmcoperations table
not preferable
table
Due to Fregent Drac on a
index will get
Ca For
every Dmc operation S deadlocks
updated s it cause blocks

Function Based Index


column means
It you create index on first name

the Query
Index will be used while executing

lather first name Steven


where Lowen first name First name
Lower
I while using Function index won't
need to
Fetch data from the table

So we need to create index with function


First name Lowe First name
12kSalary
salary
ind
Create index my th
on employees Lower first name
Clustered Index
Reverse index
key

1 100 marks

marks
student name
navel 48 97
99 Index organized table
63
72 81
35 63
839
g
30s not 50s Go's To's 80 s go's 100
63 72 85 93
85 99
89 97
g 99
85 93
81
hers g
Volume of data in high
particular teat's high
it in Leaf of index
So we are to reverse the data 8 Store
going
a Steven nevets

18 30s not 50s bo's To's so's go's too 48 97


93 99
99 93
85
É
so
72 81
35 63
43 94
85 74
89
87

when to create index when not to create index


Volume of the table I
Carin lo lakhs

naae Not Frearently wed in a


Where
where clave
1
I DMC
M Dmc operations
4109 447 coy Ht

cocaine index
It
clustered index

clout Cdep id number Cio


Create clutter empdep

create idea
amindfonciter empdep dont
id
Cdep
create fable emp

S EenIpdep chute deptids

C
create table
dept
E E
s Clut id
career empdep dept

IOI
take
great Z IoT

Jorganorationexemal

You might also like