SlideShare a Scribd company logo
Cost-based OptimizationandStatistics in FirebirdDmitry YemanovThe Firebird Projecthttp://www.firebirdsql.org
IntroductionOptimizer decides how to find all the information required in the most efficient way it can
Different queries and/or fetch strategies may benefit from different data access paths
Some information should exist in order to help the optimizer in guessing about the best access path
Optimization strategies
Rule-based (heuristics)
Cost-based (statistics)Rule-based OptimizationHeuristical definitions
Indexed retrieval is better than a full table scan(and indexed loop join is better than a merge join)
B-tree has three levels of depth
Compound indices are better than simple ones
Drawbacks
Indices could be bad for some operations
User intentions are not taken into account
Not ready for “ad hoc” queriesCost-based OptimizationKey points
Every operation has an associated cost value
Cost value is calculated using statistical data
Cost is aggregated from bottom up in the access path
Drawbacks
Complex implementation

More Related Content

What's hot (20)

PDF
Query trees
Shefa Idrees
 
PPT
Vldb14
hdbtracker
 
PPT
Textmining Retrieval And Clustering
guest0edcaf
 
PPTX
Business Analytics Foundation with R Tools - Part 3
Beamsync
 
PPTX
Business Analytics Foundation with R tools - Part 2
Beamsync
 
PPTX
Cost estimation for Query Optimization
Ravinder Kamboj
 
PPSX
Geographical information system unit 5
WE-IT TUTORIALS
 
PPTX
How Bird Atlas Data is getting used
Praveen Jayadevan
 
PPTX
CS 542 -- Query Optimization
J Singh
 
PDF
Stochastic Model-Based Analysis of Energy Consumption in a Rail Road Switch ...
Davide Basile
 
PPTX
Basic of Data Structure - Data Structure - Notes
Omprakash Chauhan
 
PPTX
Dfg & sg ppt (1)
shrutishreya14
 
PDF
SQL: Query optimization in practice
Jano Suchal
 
PDF
Au 2008 Gs100 1 P Getting Spatial With
Richard Chappell, GISP
 
PPTX
Spatial databases
Neha Kulkarni
 
PPTX
Business Analytics Foundation with R Tools Part 1
Beamsync
 
PPT
Query optimization
dixitdavey
 
PPT
13. Query Processing in DBMS
koolkampus
 
PDF
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Subhashis Hazarika
 
Query trees
Shefa Idrees
 
Vldb14
hdbtracker
 
Textmining Retrieval And Clustering
guest0edcaf
 
Business Analytics Foundation with R Tools - Part 3
Beamsync
 
Business Analytics Foundation with R tools - Part 2
Beamsync
 
Cost estimation for Query Optimization
Ravinder Kamboj
 
Geographical information system unit 5
WE-IT TUTORIALS
 
How Bird Atlas Data is getting used
Praveen Jayadevan
 
CS 542 -- Query Optimization
J Singh
 
Stochastic Model-Based Analysis of Energy Consumption in a Rail Road Switch ...
Davide Basile
 
Basic of Data Structure - Data Structure - Notes
Omprakash Chauhan
 
Dfg & sg ppt (1)
shrutishreya14
 
SQL: Query optimization in practice
Jano Suchal
 
Au 2008 Gs100 1 P Getting Spatial With
Richard Chappell, GISP
 
Spatial databases
Neha Kulkarni
 
Business Analytics Foundation with R Tools Part 1
Beamsync
 
Query optimization
dixitdavey
 
13. Query Processing in DBMS
koolkampus
 
Semi automatic vortex extraction in 4 d pc-mri cardiac blood flow data using ...
Subhashis Hazarika
 

Similar to Firebird: cost-based optimization and statistics, by Dmitry Yemanov (in English) (20)

PPT
Cost Based Optimizer - Part 1 of 2
Mahesh Vallampati
 
PPTX
Tunning sql query
vuhaininh88
 
PPT
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
iamsallauddin
 
PPT
Cost Based Optimizer - Part 2 of 2
Mahesh Vallampati
 
PPT
Indexing
Davood Barfeh
 
PDF
How to Analyze and Tune MySQL Queries for Better Performance
oysteing
 
PPTX
Oracle performance tuning for java developers
Saeed Shahsavan
 
PDF
Bo4301369372
IJERA Editor
 
PDF
data-exp-Viz-00-2.pdf
betsegaw123
 
PDF
Using Netezza Query Plan to Improve Performace
Biju Nair
 
PPTX
U-SQL Partitioned Data and Tables (SQLBits 2016)
Michael Rys
 
PPTX
MySQL Indexes
Anton Zhukov
 
PPT
Overview of query evaluation
avniS
 
PPTX
Mapping Data Flows Training deck Q1 CY22
Mark Kromer
 
PPT
Data preprocessing in Data Mining
DHIVYADEVAKI
 
PPTX
Cost-Based-Query-Optimization-in-DBMS.pptx
maddishiva1989
 
PDF
Presentation top tips for getting optimal sql execution
xKinAnx
 
PDF
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
IOSR Journals
 
PPTX
Presentation_BigData_NenaMarin
n5712036
 
Cost Based Optimizer - Part 1 of 2
Mahesh Vallampati
 
Tunning sql query
vuhaininh88
 
Lecture 1 IntroductionToDataStructures_coursematerial_Draft0.01.ppt
iamsallauddin
 
Cost Based Optimizer - Part 2 of 2
Mahesh Vallampati
 
Indexing
Davood Barfeh
 
How to Analyze and Tune MySQL Queries for Better Performance
oysteing
 
Oracle performance tuning for java developers
Saeed Shahsavan
 
Bo4301369372
IJERA Editor
 
data-exp-Viz-00-2.pdf
betsegaw123
 
Using Netezza Query Plan to Improve Performace
Biju Nair
 
U-SQL Partitioned Data and Tables (SQLBits 2016)
Michael Rys
 
MySQL Indexes
Anton Zhukov
 
Overview of query evaluation
avniS
 
Mapping Data Flows Training deck Q1 CY22
Mark Kromer
 
Data preprocessing in Data Mining
DHIVYADEVAKI
 
Cost-Based-Query-Optimization-in-DBMS.pptx
maddishiva1989
 
Presentation top tips for getting optimal sql execution
xKinAnx
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
IOSR Journals
 
Presentation_BigData_NenaMarin
n5712036
 
Ad

More from Alexey Kovyazin (20)

PPTX
High-load performance testing: Firebird 2.5, 3.0, 4.0
Alexey Kovyazin
 
PPTX
Fail-Safe Cluster for FirebirdSQL and something more
Alexey Kovyazin
 
PPTX
Новые возможности языка SQL в Firebird 3.0
Alexey Kovyazin
 
ODP
Firebird recovery tools and techniques by IBSurgeon
Alexey Kovyazin
 
ODP
How Firebird transactions work
Alexey Kovyazin
 
PDF
Life with big Firebird databases
Alexey Kovyazin
 
PDF
Professional tools for Firebird optimization and maintenance from IBSurgeon
Alexey Kovyazin
 
PPTX
Resolving Firebird performance problems
Alexey Kovyazin
 
PDF
Firebird migration: from Firebird 1.5 to Firebird 2.5
Alexey Kovyazin
 
PPTX
Firebird migration: from Firebird 1.5 to Firebird 2.5
Alexey Kovyazin
 
PPTX
Firebird Anti-Corruption Approach
Alexey Kovyazin
 
PPTX
Firebird's Big Databases (in English)
Alexey Kovyazin
 
PDF
Firebird Dataguard (Russian)
Alexey Kovyazin
 
PPT
Решения на базе СУБД Firebird в крупных компаниях и государственных учреждени...
Alexey Kovyazin
 
PDF
Firebird DataGuard - Еще раз об уверенности в завтрашнем дне
Alexey Kovyazin
 
PDF
Firebird usage promo draft
Alexey Kovyazin
 
PPTX
FBScanner: IBSurgeon's tool to solve all types of performance problems with F...
Alexey Kovyazin
 
ODP
Firebird 2.5 - вектор дальнейшего развития, Dmitry Yemanov, (in Russian)
Alexey Kovyazin
 
ODP
СУБД Firebird: Краткий обзор, Дмитрий Еманов (in Russian)
Alexey Kovyazin
 
ODP
Open Source: взгляд изнутри, Дмитрий Еманов (The Firebird Project) (in Russian)
Alexey Kovyazin
 
High-load performance testing: Firebird 2.5, 3.0, 4.0
Alexey Kovyazin
 
Fail-Safe Cluster for FirebirdSQL and something more
Alexey Kovyazin
 
Новые возможности языка SQL в Firebird 3.0
Alexey Kovyazin
 
Firebird recovery tools and techniques by IBSurgeon
Alexey Kovyazin
 
How Firebird transactions work
Alexey Kovyazin
 
Life with big Firebird databases
Alexey Kovyazin
 
Professional tools for Firebird optimization and maintenance from IBSurgeon
Alexey Kovyazin
 
Resolving Firebird performance problems
Alexey Kovyazin
 
Firebird migration: from Firebird 1.5 to Firebird 2.5
Alexey Kovyazin
 
Firebird migration: from Firebird 1.5 to Firebird 2.5
Alexey Kovyazin
 
Firebird Anti-Corruption Approach
Alexey Kovyazin
 
Firebird's Big Databases (in English)
Alexey Kovyazin
 
Firebird Dataguard (Russian)
Alexey Kovyazin
 
Решения на базе СУБД Firebird в крупных компаниях и государственных учреждени...
Alexey Kovyazin
 
Firebird DataGuard - Еще раз об уверенности в завтрашнем дне
Alexey Kovyazin
 
Firebird usage promo draft
Alexey Kovyazin
 
FBScanner: IBSurgeon's tool to solve all types of performance problems with F...
Alexey Kovyazin
 
Firebird 2.5 - вектор дальнейшего развития, Dmitry Yemanov, (in Russian)
Alexey Kovyazin
 
СУБД Firebird: Краткий обзор, Дмитрий Еманов (in Russian)
Alexey Kovyazin
 
Open Source: взгляд изнутри, Дмитрий Еманов (The Firebird Project) (in Russian)
Alexey Kovyazin
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Designing Production-Ready AI Agents
Kunal Rai
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Designing Production-Ready AI Agents
Kunal Rai
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
July Patch Tuesday
Ivanti
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 

Firebird: cost-based optimization and statistics, by Dmitry Yemanov (in English)