SlideShare a Scribd company logo
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 1
Why Isn't My Query Using an Index?
An introduction to SQL performance
Chris Saxon, Oracle Developer Advocate for SQL
chris.saxon@oracle.com
@chrisrsaxon & @sqldaily
blogs.oracle.com/sql
www.youtube.com/c/TheMagicofSQL
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Why isn’t Oracle using my
#@!%
index?!
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG
Blue 73 Brown 56 Green 11 Orange 19 Red 2
Blue 31 Brown 40 Green 31 Orange 19 Red 41
Blue 1 Brown 41 Green 70 Orange 85 Red 21
Blue 64 Brown 65 Green 4 Red 42 Red 32
Blue 69 Brown 23 Green 80 Red 100 Red 12
Blue 85 Brown 21 Green 28 Red 70 Red 83
Blue 84 Brown 73 Green 44 Red 38 Yellow 29
Blue 40 Brown 97 Green 99 Red 33 Yellow 31
Blue 41 Brown 57 Green 32 Red 63 Yellow 51
Blue 88 Brown 63 Orange 85 Red 22 Yellow 33
Blue 100 Brown 100 Orange 21 Red 80 Yellow 4
Blue 6 Brown 80 Orange 76 Red 80 Yellow 9
Blue 64 Brown 75 Orange 32 Red 40 Yellow 27
Blue 90 Green 20 Orange 93 Red 68 Yellow 48
Blue 24 Green 50 Orange 70 Red 54 Yellow 56
Brown 88 Green 85 Orange 2 Red 93 Yellow 15
Brown 50 Green 17 Orange 15 Red 93 Yellow 81
Brown 69 Green 27 Orange 5 Red 20 Yellow 83
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
What’s this got to do with
?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
M&M => a row
Document => an index
A bag => a block
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Method #1 => TABLE ACCESS FULL
Method #2 => INDEX RANGE SCAN
Multiblock reads
Single block reads
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Source: Pixabay
Which is faster?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
FULL TABLE SCAN
Visit each bag once
INDEX RANGE SCAN
Visit each bag ~10 times
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
What if there’s a
Promotion?
silver sweets in 1% of bags
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
FULL TABLE SCAN
Visit each bag once
INDEX RANGE SCAN
One bag visit
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
The
Cost Based Optimizer
estimates these calculations
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
DEMO
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
"M & Ms (3685102458)" by Greg Willis from Denver, CO, usa Uploaded by russavia. CC BY-SA 2.0
Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG
Blue 1 Brown 7 Green 13 Orange 19 Red 25
Blue 1 Brown 7 Green 13 Orange 19 Red 25
Blue 1 Brown 7 Green 13 Orange 19 Red 25
Blue 2 Brown 8 Green 14 Red 20 Red 26
Blue 2 Brown 8 Green 14 Red 20 Red 26
Blue 2 Brown 8 Green 14 Red 20 Red 26
Blue 3 Brown 9 Green 15 Red 21 Yellow 27
Blue 3 Brown 9 Green 15 Red 21 Yellow 27
Blue 3 Brown 9 Green 15 Red 21 Yellow 27
Blue 4 Brown 10 Orange 16 Red 22 Yellow 28
Blue 4 Brown 10 Orange 16 Red 22 Yellow 28
Blue 4 Brown 10 Orange 16 Red 22 Yellow 28
Blue 5 Brown 10 Orange 17 Red 23 Yellow 29
Blue 5 Green 11 Orange 17 Red 23 Yellow 29
Blue 5 Green 11 Orange 17 Red 23 Yellow 29
Brown 6 Green 11 Orange 18 Red 24 Yellow 30
Brown 6 Green 12 Orange 18 Red 24 Yellow 30
Brown 6 Green 12 Orange 18 Red 24 Yellow 30
Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG
Blue 1 Brown 3 Green 4 Orange 7 Red 9
Blue 1 Brown 4 Green 4 Orange 8 Red 9
Blue 2 Brown 5 Green 5 Orange 9 Red 9
Blue 2 Brown 5 Green 6 Red 1 Red 9
Blue 3 Brown 5 Green 6 Red 2 Red 10
Blue 4 Brown 6 Green 7 Red 2 Red 10
Blue 6 Brown 7 Green 8 Red 3 Yellow 1
Blue 7 Brown 8 Green 8 Red 3 Yellow 1
Blue 7 Brown 8 Green 10 Red 4 Yellow 2
Blue 8 Brown 9 Orange 1 Red 4 Yellow 2
Blue 9 Brown 9 Orange 2 Red 5 Yellow 3
Blue 9 Brown 10 Orange 3 Red 6 Yellow 5
Blue 10 Brown 10 Orange 3 Red 6 Yellow 5
Blue 10 Green 1 Orange 4 Red 7 Yellow 6
Blue 10 Green 2 Orange 4 Red 7 Yellow 7
Brown 2 Green 3 Orange 5 Red 8 Yellow 8
Brown 2 Green 3 Orange 6 Red 8 Yellow 9
Brown 2 Green 3 Orange 6 Red 8 Yellow 10
Clustering factor
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
clustering factor = 10 (good)
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
clustering factor = 120 (bad)
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
DEMO
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
How do I
Improve
the clustering factor?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Tannin Heap Simon A. Eugster CC-BY-3.0
By default
tables are
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Organized
Part ition ed
Clusters
How do I ensure
consistent
clustering?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
There can be only 1!
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Colour
Weight
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Cost
Rows
Full Table Scan
Index Range Scan 1
Index Range Scan 2
Index Range Scan 3
Rows
“Toy Blocks (6831034024)” welcometolearn CC BY 2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
developer.oracle.com
#MakeDataGreatAgain
Why Isn't My Query Using an Index?: An Introduction to SQL Performance

More Related Content

Similar to Why Isn't My Query Using an Index?: An Introduction to SQL Performance (20)

PPT
Img.kgn shortpres.2014
imgprocurement
 
PPT
1.3 session by klanarong cassava as a biofuel-bioenergy crop ghana
IFAD International Fund for Agricultural Development
 
PDF
The top ten producers of pistachios and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
PPTX
Slide PPT magic book in the new year 2021.pptx
RomyWindiyanto1
 
PDF
Every Product Every Cycle in Production
Lean Enterprise Academy
 
PPTX
Slides PPT laboratory the new year 2021.pptx
RomyWindiyanto1
 
PDF
The top ten producers of strawberries and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
PDF
iScreen OFD Oral Fluid Drug Screen Procedures
Michael Zures
 
PDF
iScreen OFD Procedures
Jeremy Janke
 
PDF
The top ten producers of grapes and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
PPTX
Karennita RS - Probation Presentation.pptx
arfian9
 
PPTX
neostigmine.pptxhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
MagdielaCristancho
 
PPTX
Ferdinand · SlidesCarnival.pptx
FelisbertoAguiarMuan
 
PPTX
modelo edgar.pptx
SantiagoApaza7
 
POTX
Curio · SlidesCarnival plantilla presentación.potx
LissethHerrera28
 
PDF
The top ten producers of oranges and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
PPTX
Brabantio · SlidesCarnival.pptx
TiffanyMeneses1
 
PPTX
Brabantio · SlidesCarnival.pptx
asman25
 
PDF
The top ten producers of walnuts and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
PDF
The top ten producers of almonds and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
Img.kgn shortpres.2014
imgprocurement
 
1.3 session by klanarong cassava as a biofuel-bioenergy crop ghana
IFAD International Fund for Agricultural Development
 
The top ten producers of pistachios and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
Slide PPT magic book in the new year 2021.pptx
RomyWindiyanto1
 
Every Product Every Cycle in Production
Lean Enterprise Academy
 
Slides PPT laboratory the new year 2021.pptx
RomyWindiyanto1
 
The top ten producers of strawberries and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
iScreen OFD Oral Fluid Drug Screen Procedures
Michael Zures
 
iScreen OFD Procedures
Jeremy Janke
 
The top ten producers of grapes and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
Karennita RS - Probation Presentation.pptx
arfian9
 
neostigmine.pptxhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
MagdielaCristancho
 
Ferdinand · SlidesCarnival.pptx
FelisbertoAguiarMuan
 
modelo edgar.pptx
SantiagoApaza7
 
Curio · SlidesCarnival plantilla presentación.potx
LissethHerrera28
 
The top ten producers of oranges and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
Brabantio · SlidesCarnival.pptx
TiffanyMeneses1
 
Brabantio · SlidesCarnival.pptx
asman25
 
The top ten producers of walnuts and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 
The top ten producers of almonds and turkey's ranking among them
ALADDIN PERTANIAN INTERNASIONAL
 

More from TechExeter (20)

PPTX
Exeter Science Centre, by Natalie Whitehead
TechExeter
 
PPTX
South West InternetOfThings Network by Wo King
TechExeter
 
PPTX
Generative Adversarial Networks by Tariq Rashid
TechExeter
 
PDF
Conf 2019 - Workshop: Liam Glanfield - know your threat actor
TechExeter
 
PDF
Conf 2018 Track 1 - Unicorns aren't real
TechExeter
 
PDF
Conf 2018 Track 1 - Aerospace Innovation
TechExeter
 
PDF
Conf 2018 Track 2 - Try Elm
TechExeter
 
PPTX
Conf 2018 Track 3 - Creating marine geospatial services
TechExeter
 
PPTX
Conf 2018 Track 2 - Machine Learning with TensorFlow
TechExeter
 
PPTX
Conf 2018 Track 2 - Custom Web Elements with Stencil
TechExeter
 
PDF
Conf 2018 Track 1 - Tessl / revolutionising the house moving process
TechExeter
 
PPTX
Conf 2018 Keynote - Andy Stanford-Clark, CTO IBM UK
TechExeter
 
PPTX
Conf 2018 Track 3 - Microservices - What I've learned after a year building s...
TechExeter
 
PPTX
Gps behaving badly - Guy Busenel
TechExeter
 
PPTX
Turning Developers into Testers
TechExeter
 
PDF
Remote working
TechExeter
 
PPTX
Developing an Agile Mindset
TechExeter
 
PDF
Think like a gardener
TechExeter
 
PDF
The trials and tribulations of providing engineering infrastructure
TechExeter
 
PDF
Scaling clusters to thousands of servers in the cloud
TechExeter
 
Exeter Science Centre, by Natalie Whitehead
TechExeter
 
South West InternetOfThings Network by Wo King
TechExeter
 
Generative Adversarial Networks by Tariq Rashid
TechExeter
 
Conf 2019 - Workshop: Liam Glanfield - know your threat actor
TechExeter
 
Conf 2018 Track 1 - Unicorns aren't real
TechExeter
 
Conf 2018 Track 1 - Aerospace Innovation
TechExeter
 
Conf 2018 Track 2 - Try Elm
TechExeter
 
Conf 2018 Track 3 - Creating marine geospatial services
TechExeter
 
Conf 2018 Track 2 - Machine Learning with TensorFlow
TechExeter
 
Conf 2018 Track 2 - Custom Web Elements with Stencil
TechExeter
 
Conf 2018 Track 1 - Tessl / revolutionising the house moving process
TechExeter
 
Conf 2018 Keynote - Andy Stanford-Clark, CTO IBM UK
TechExeter
 
Conf 2018 Track 3 - Microservices - What I've learned after a year building s...
TechExeter
 
Gps behaving badly - Guy Busenel
TechExeter
 
Turning Developers into Testers
TechExeter
 
Remote working
TechExeter
 
Developing an Agile Mindset
TechExeter
 
Think like a gardener
TechExeter
 
The trials and tribulations of providing engineering infrastructure
TechExeter
 
Scaling clusters to thousands of servers in the cloud
TechExeter
 
Ad

Recently uploaded (20)

PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
PPTX
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
PPTX
reInforce 2025 Lightning Talk - Scott Francis.pptx
ScottFrancis51
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
Python Conference Singapore - 19 Jun 2025
ninefyi
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
reInforce 2025 Lightning Talk - Scott Francis.pptx
ScottFrancis51
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Python Conference Singapore - 19 Jun 2025
ninefyi
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Ad

Why Isn't My Query Using an Index?: An Introduction to SQL Performance

  • 1. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 1 Why Isn't My Query Using an Index? An introduction to SQL performance Chris Saxon, Oracle Developer Advocate for SQL [email protected] @chrisrsaxon & @sqldaily blogs.oracle.com/sql www.youtube.com/c/TheMagicofSQL
  • 2. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Why isn’t Oracle using my #@!% index?!
  • 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
  • 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
  • 5. Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG Blue 73 Brown 56 Green 11 Orange 19 Red 2 Blue 31 Brown 40 Green 31 Orange 19 Red 41 Blue 1 Brown 41 Green 70 Orange 85 Red 21 Blue 64 Brown 65 Green 4 Red 42 Red 32 Blue 69 Brown 23 Green 80 Red 100 Red 12 Blue 85 Brown 21 Green 28 Red 70 Red 83 Blue 84 Brown 73 Green 44 Red 38 Yellow 29 Blue 40 Brown 97 Green 99 Red 33 Yellow 31 Blue 41 Brown 57 Green 32 Red 63 Yellow 51 Blue 88 Brown 63 Orange 85 Red 22 Yellow 33 Blue 100 Brown 100 Orange 21 Red 80 Yellow 4 Blue 6 Brown 80 Orange 76 Red 80 Yellow 9 Blue 64 Brown 75 Orange 32 Red 40 Yellow 27 Blue 90 Green 20 Orange 93 Red 68 Yellow 48 Blue 24 Green 50 Orange 70 Red 54 Yellow 56 Brown 88 Green 85 Orange 2 Red 93 Yellow 15 Brown 50 Green 17 Orange 15 Red 93 Yellow 81 Brown 69 Green 27 Orange 5 Red 20 Yellow 83
  • 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | What’s this got to do with ?
  • 7. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | M&M => a row Document => an index A bag => a block
  • 8. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Method #1 => TABLE ACCESS FULL Method #2 => INDEX RANGE SCAN Multiblock reads Single block reads
  • 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Source: Pixabay Which is faster?
  • 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | FULL TABLE SCAN Visit each bag once INDEX RANGE SCAN Visit each bag ~10 times
  • 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | What if there’s a Promotion? silver sweets in 1% of bags
  • 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | FULL TABLE SCAN Visit each bag once INDEX RANGE SCAN One bag visit
  • 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The Cost Based Optimizer estimates these calculations
  • 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | DEMO
  • 15. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | "M & Ms (3685102458)" by Greg Willis from Denver, CO, usa Uploaded by russavia. CC BY-SA 2.0
  • 16. Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG Blue 1 Brown 7 Green 13 Orange 19 Red 25 Blue 1 Brown 7 Green 13 Orange 19 Red 25 Blue 1 Brown 7 Green 13 Orange 19 Red 25 Blue 2 Brown 8 Green 14 Red 20 Red 26 Blue 2 Brown 8 Green 14 Red 20 Red 26 Blue 2 Brown 8 Green 14 Red 20 Red 26 Blue 3 Brown 9 Green 15 Red 21 Yellow 27 Blue 3 Brown 9 Green 15 Red 21 Yellow 27 Blue 3 Brown 9 Green 15 Red 21 Yellow 27 Blue 4 Brown 10 Orange 16 Red 22 Yellow 28 Blue 4 Brown 10 Orange 16 Red 22 Yellow 28 Blue 4 Brown 10 Orange 16 Red 22 Yellow 28 Blue 5 Brown 10 Orange 17 Red 23 Yellow 29 Blue 5 Green 11 Orange 17 Red 23 Yellow 29 Blue 5 Green 11 Orange 17 Red 23 Yellow 29 Brown 6 Green 11 Orange 18 Red 24 Yellow 30 Brown 6 Green 12 Orange 18 Red 24 Yellow 30 Brown 6 Green 12 Orange 18 Red 24 Yellow 30
  • 17. Colour BAG Colour BAG Colour BAG Colour BAG Colour BAG Blue 1 Brown 3 Green 4 Orange 7 Red 9 Blue 1 Brown 4 Green 4 Orange 8 Red 9 Blue 2 Brown 5 Green 5 Orange 9 Red 9 Blue 2 Brown 5 Green 6 Red 1 Red 9 Blue 3 Brown 5 Green 6 Red 2 Red 10 Blue 4 Brown 6 Green 7 Red 2 Red 10 Blue 6 Brown 7 Green 8 Red 3 Yellow 1 Blue 7 Brown 8 Green 8 Red 3 Yellow 1 Blue 7 Brown 8 Green 10 Red 4 Yellow 2 Blue 8 Brown 9 Orange 1 Red 4 Yellow 2 Blue 9 Brown 9 Orange 2 Red 5 Yellow 3 Blue 9 Brown 10 Orange 3 Red 6 Yellow 5 Blue 10 Brown 10 Orange 3 Red 6 Yellow 5 Blue 10 Green 1 Orange 4 Red 7 Yellow 6 Blue 10 Green 2 Orange 4 Red 7 Yellow 7 Brown 2 Green 3 Orange 5 Red 8 Yellow 8 Brown 2 Green 3 Orange 6 Red 8 Yellow 9 Brown 2 Green 3 Orange 6 Red 8 Yellow 10
  • 19. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | clustering factor = 10 (good)
  • 20. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | clustering factor = 120 (bad)
  • 21. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | DEMO
  • 22. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | How do I Improve the clustering factor?
  • 23. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Tannin Heap Simon A. Eugster CC-BY-3.0 By default tables are
  • 24. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Organized Part ition ed Clusters How do I ensure consistent clustering?
  • 25. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | There can be only 1!
  • 26. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Colour Weight
  • 27. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Cost Rows Full Table Scan Index Range Scan 1 Index Range Scan 2 Index Range Scan 3
  • 28. Rows “Toy Blocks (6831034024)” welcometolearn CC BY 2.0
  • 29. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | developer.oracle.com #MakeDataGreatAgain