SlideShare a Scribd company logo
1 of 13
Debate Initial Post and Response Rubric
Student Name: Faculty Grading:
Assignment Grade:
Inadequate
information
0 points
Some
information,
but incomplete
or inconclusive
1.6 points
Complete and
Informative
information
2 points
Points
Statement of issue is clear
and concise
Argument pro/con is
explanatory, convincing and
non-speculative
Conclusion/Recommendation
is specific with a definitive
recommendation
References are appropriate
and current
Total Points:
Database Systems
Design, Implementation, and Management
Coronel | Morris
11e
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Chapter 11
Database Performance Tuning and Query Optimization
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Learning ObjectivesIn this chapter, the student will learn:Basic
database performance-tuning conceptsHow a DBMS processes
SQL queriesAbout the importance of indexes in query
processingAbout the types of decisions the query optimizer has
to makeSome common practices used to write efficient SQL
codeHow to formulate queries and tune the DBMS for optimal
performance
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Database Performance-Tuning ConceptsGoal of database
performance is to execute queries as fast as possibleDatabase
performance tuning: Set of activities and procedures that reduce
response time of database systemFine-tuning the performance of
a system requires that all factors must operate at optimum level
with minimal bottlenecks
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Table 11.1 - General Guidelines for Better System Performance
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Performance Tuning: Client and ServerClient sideSQL
performance tuning: Generates SQL query that returns correct
answer in least amount of timeUsing minimum amount of
resources at serverServer sideDBMS performance tuning:
DBMS environment configured to respond to clients’ requests
as fast as possibleOptimum use of existing resources
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
DBMS ArchitectureAll data in a database are stored in data
filesData files automatically expand in predefined increments
known as extendsData files are grouped in file groups or table
spacesTable space or file group: Logical grouping of several
data files that store data with similar characteristicsData cache
or buffer cache: Shared, reserved memory areaStores most
recently accessed data blocks in RAM
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
DBMS ArchitectureSQL cache or procedure cache: Stores most
recently executed SQL statements or PL/SQL proceduresDBMS
retrieves data from permanent storage and places them in
RAMInput/output request: Low-level data access operation that
reads or writes data to and from computer devicesData cache is
faster than working with data filesMajority of performance-
tuning activities focus on minimizing I/O operations
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Figure 11.1 - Basic DBMS Architecture
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Database Query Optimization ModesAlgorithms proposed for
query optimization are based on:Selection of the optimum order
to achieve the fastest execution timeSelection of sites to be
accessed to minimize communication costsEvaluated on the
basis of:Operation modeTiming of its optimization
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Classification of Operation ModesAutomatic query
optimization: DBMS finds the most cost-effective access path
without user interventionManual query optimization: Requires
that the optimization be selected and scheduled by the end user
or programmer
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Classification Based on Timing of Optimization Static query
optimization: best optimization strategy is selected when the
query is compiled by the DBMSTakes place at compilation
timeDynamic query optimization: Access strategy is
dynamically determined by the DBMS at run time, using the
most up-to-date information about the databaseTakes place at
execution time
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Classification Based on Type of Information Used to Optimize
the QueryStatistically based query optimization algorithm:
Statistics are used by the DBMS to determine the best access
strategyStatistical information is generated by DBMS
through:Dynamic statistical generation modeManual statistical
generation modeRule-based query optimization algorithm: based
on a set of user-defined rules to determine the best query access
strategy
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Table 11.2 - Sample Database Statistics Measurements
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Query Processing
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
SQL Parsing PhaseQuery is broken down into smaller units
Original SQL query is transformed into slightly different
version of the original SQL code which is fully equivalent and
more efficientQuery optimizer: Analyzes SQL query and finds
most efficient way to access dataAccess plans: DBMS-specific
and translate client’s SQL query into a series of complex I/O
operations
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
SQL Parsing PhaseIf access plan already exists for query in
SQL cache, DBMS reuses itIf not, optimizer evaluates various
plans and chooses one to be placed in SQL cache for use
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
SQL Execution PhaseAll I/O operations indicated in the access
plan are executedLocks are acquiredData are retrieved and
placed in data cacheTransaction management commands are
processed
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
SQL Fetching PhaseRows of resulting query result set are
returned to clientDBMS may use temporary table space to store
temporary dataDatabase server coordinates the movement of the
result set rows from the server cache to the client cache
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Query Processing BottlenecksDelay introduced in the
processing of an I/O operation that slows the systemCaused by
the:CPURAMHard diskNetworkApplication code
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Indexes and Query OptimizationIndexesHelp speed up data
accessFacilitate searching, sorting, using aggregate functions,
and join operationsOrdered set of values that contain the index
key and pointersMore efficient than a full table scan
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Indexes and Query OptimizationData sparsity: Number of
different values a column could haveData structures used to
implement indexes:Hash indexesB-tree indexesBitmap
indexesDBMSs determine best type of index to use
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Optimizer ChoicesRule-based optimizer: Uses preset rules and
points to determine the best approach to execute a queryCost-
based optimizer: Uses algorithms based on statistics about
objects being accessed to determine the best approach to
execute a query
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Using Hints to Affect Optimizer ChoicesOptimizer might not
choose the best execution planMakes decisions based on
existing statistics, which might be oldMight choose less-
efficient decisionsOptimizer hints: Special instructions for the
optimizer, embedded in the SQL command text
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Table 11.5 - Optimizer Hints
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
SQL Performance TuningEvaluated from client perspectiveMost
current relational DBMSs perform automatic query optimization
at the server endMost SQL performance optimization techniques
are DBMS-specific and thus rarely portableMajority of
performance problems are related to poorly written SQL code
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Index SelectivityMeasure of the likelihood that an index will be
used in query processingIndexes are used when a subset of rows
from a large table is to be selected based on a given
conditionIndex cannot always be used to improve
performanceFunction-based index: Based on a specific SQL
function or expression
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Conditional ExpressionsExpressed within WHERE or HAVING
clauses of a SQL statementRestricts the output of a query to
only rows matching conditional criteriaGuidelines to write
efficient conditional expressions in SQL codeUse simple
columns or literals as operandsNumeric field comparisons are
faster than character, date, and NULL comparisons
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Conditional ExpressionsEquality comparisons are faster than
inequality comparisonsTransform conditional expressions to use
literalsWrite equality conditions first when using multiple
conditional expressionsWhen using multiple AND conditions,
write the condition most likely to be false firstWhen using
multiple OR conditions, put the condition most likely to be true
firstAvoid the use of NOT logical operator
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Query FormulationIdentify what columns and computations are
requiredIdentify source tablesDetermine how to join
tablesDetermine what selection criteria are neededDetermine the
order in which to display the output
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
DBMS Performance TuningManaging DBMS processes in
primary memory and the structures in physical storageDBMS
performance tuning at server end focuses on setting parameters
used for:Data cacheSQL cacheSort cacheOptimizer modeIn-
memory database: Store large portions of the database in
primary storage
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
DBMS Performance TuningRecommendations for physical
storage of databases:Use RAID (Redundant Array of
Independent Disks) to provide a balance between performance
improvement and fault toleranceMinimize disk contentionPut
high-usage tables in their own table spacesAssign separate data
files in separate storage volumes for indexes, system, and high-
usage tables
*
©2015 Cengage Learning. All Rights Reserved. May not be
scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
DBMS Performance TuningTake advantage of the various table
storage organizations in the databaseIndex-organized table or
clustered index table: Stores the end-user data and the index
data in consecutive locations in permanent storagePartition
tables based on usageUse denormalized tables where
appropriateStore computed and aggregate attributes in tables
*

More Related Content

Similar to Debate Initial Post and Response Rubric Student Name .docx

Metadata Modeling Best Practices with IBM Cognos Framework Manager
Metadata Modeling Best Practices with IBM Cognos Framework ManagerMetadata Modeling Best Practices with IBM Cognos Framework Manager
Metadata Modeling Best Practices with IBM Cognos Framework ManagerSenturus
 
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise ManagerLatest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise ManagerHari Srinivasan
 
FDMEE Can Do That?
FDMEE Can Do That?FDMEE Can Do That?
FDMEE Can Do That?Alithya
 
Automated EDW Assessment and Actionable Recommendations - Impetus Webinar
Automated EDW Assessment and Actionable Recommendations - Impetus WebinarAutomated EDW Assessment and Actionable Recommendations - Impetus Webinar
Automated EDW Assessment and Actionable Recommendations - Impetus WebinarImpetus Technologies
 
Database AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxDatabase AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxwhittemorelucilla
 
Which Change Data Capture Strategy is Right for You?
Which Change Data Capture Strategy is Right for You?Which Change Data Capture Strategy is Right for You?
Which Change Data Capture Strategy is Right for You?Precisely
 
MetaASO J2EE Web Framework
MetaASO J2EE Web FrameworkMetaASO J2EE Web Framework
MetaASO J2EE Web Frameworkguestc23c1f
 
MetaASO J-WebFramework
MetaASO J-WebFrameworkMetaASO J-WebFramework
MetaASO J-WebFrameworkguestecd4c7
 
(8) ECT200_Ch08 Databases and Information Systems.pptx
(8) ECT200_Ch08 Databases and Information Systems.pptx(8) ECT200_Ch08 Databases and Information Systems.pptx
(8) ECT200_Ch08 Databases and Information Systems.pptxAshrafShooosh
 
Postgres in production.2014
Postgres in production.2014Postgres in production.2014
Postgres in production.2014EDB
 
Best practice adoption (and lack there of)
Best practice adoption (and lack there of)Best practice adoption (and lack there of)
Best practice adoption (and lack there of)John Pape
 
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Joel Oleson
 

Similar to Debate Initial Post and Response Rubric Student Name .docx (20)

Sql good practices
Sql good practicesSql good practices
Sql good practices
 
Metadata Modeling Best Practices with IBM Cognos Framework Manager
Metadata Modeling Best Practices with IBM Cognos Framework ManagerMetadata Modeling Best Practices with IBM Cognos Framework Manager
Metadata Modeling Best Practices with IBM Cognos Framework Manager
 
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise ManagerLatest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
 
FDMEE Can Do That?
FDMEE Can Do That?FDMEE Can Do That?
FDMEE Can Do That?
 
Automated EDW Assessment and Actionable Recommendations - Impetus Webinar
Automated EDW Assessment and Actionable Recommendations - Impetus WebinarAutomated EDW Assessment and Actionable Recommendations - Impetus Webinar
Automated EDW Assessment and Actionable Recommendations - Impetus Webinar
 
Pp 09-new
Pp 09-newPp 09-new
Pp 09-new
 
Pp 09-new
Pp 09-newPp 09-new
Pp 09-new
 
Database AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxDatabase AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docx
 
Which Change Data Capture Strategy is Right for You?
Which Change Data Capture Strategy is Right for You?Which Change Data Capture Strategy is Right for You?
Which Change Data Capture Strategy is Right for You?
 
ch12text.pdf
ch12text.pdfch12text.pdf
ch12text.pdf
 
MetaASO J2EE Web Framework
MetaASO J2EE Web FrameworkMetaASO J2EE Web Framework
MetaASO J2EE Web Framework
 
MetaASO J-WebFramework
MetaASO J-WebFrameworkMetaASO J-WebFramework
MetaASO J-WebFramework
 
(8) ECT200_Ch08 Databases and Information Systems.pptx
(8) ECT200_Ch08 Databases and Information Systems.pptx(8) ECT200_Ch08 Databases and Information Systems.pptx
(8) ECT200_Ch08 Databases and Information Systems.pptx
 
CV_Mike Yan
CV_Mike YanCV_Mike Yan
CV_Mike Yan
 
SharePoint Topology
SharePoint Topology SharePoint Topology
SharePoint Topology
 
Pp 14-new
Pp 14-newPp 14-new
Pp 14-new
 
Postgres in production.2014
Postgres in production.2014Postgres in production.2014
Postgres in production.2014
 
Best practice adoption (and lack there of)
Best practice adoption (and lack there of)Best practice adoption (and lack there of)
Best practice adoption (and lack there of)
 
Resume..
Resume..Resume..
Resume..
 
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
 

More from simonithomas47935

Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docx
Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docxHours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docx
Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docxsimonithomas47935
 
How are authentication and authorization alike and how are the.docx
How are authentication and authorization alike and how are the.docxHow are authentication and authorization alike and how are the.docx
How are authentication and authorization alike and how are the.docxsimonithomas47935
 
How are self-esteem and self-concept different What is the or.docx
How are self-esteem and self-concept different What is the or.docxHow are self-esteem and self-concept different What is the or.docx
How are self-esteem and self-concept different What is the or.docxsimonithomas47935
 
How are morality and religion similar and how are they different.docx
How are morality and religion similar and how are they different.docxHow are morality and religion similar and how are they different.docx
How are morality and religion similar and how are they different.docxsimonithomas47935
 
How are financial statements used to evaluate business activities.docx
How are financial statements used to evaluate business activities.docxHow are financial statements used to evaluate business activities.docx
How are financial statements used to evaluate business activities.docxsimonithomas47935
 
How are Japanese and Chinese Americans similar How are they differe.docx
How are Japanese and Chinese Americans similar How are they differe.docxHow are Japanese and Chinese Americans similar How are they differe.docx
How are Japanese and Chinese Americans similar How are they differe.docxsimonithomas47935
 
Hot Spot PolicingPlace can be an important aspect of crime and.docx
Hot Spot PolicingPlace can be an important aspect of crime and.docxHot Spot PolicingPlace can be an important aspect of crime and.docx
Hot Spot PolicingPlace can be an important aspect of crime and.docxsimonithomas47935
 
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docx
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docxHOSP3075 Brand Analysis Paper 1This is the first of three assignme.docx
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docxsimonithomas47935
 
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docx
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docxHou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docx
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docxsimonithomas47935
 
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docx
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docxHow (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docx
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docxsimonithomas47935
 
Hopefully, you enjoyed this class on Digital Media and Society.Q.docx
Hopefully, you enjoyed this class on Digital Media and Society.Q.docxHopefully, you enjoyed this class on Digital Media and Society.Q.docx
Hopefully, you enjoyed this class on Digital Media and Society.Q.docxsimonithomas47935
 
hoose (1) one childhood experience from the list provided below..docx
hoose (1) one childhood experience from the list provided below..docxhoose (1) one childhood experience from the list provided below..docx
hoose (1) one childhood experience from the list provided below..docxsimonithomas47935
 
honesty, hard work, caring, excellence HIS 1110 Dr. .docx
honesty, hard work, caring, excellence  HIS 1110      Dr. .docxhonesty, hard work, caring, excellence  HIS 1110      Dr. .docx
honesty, hard work, caring, excellence HIS 1110 Dr. .docxsimonithomas47935
 
hoose one of the four following visualsImage courtesy o.docx
hoose one of the four following visualsImage courtesy o.docxhoose one of the four following visualsImage courtesy o.docx
hoose one of the four following visualsImage courtesy o.docxsimonithomas47935
 
HomeworkChoose a site used by the public such as a supermark.docx
HomeworkChoose a site used by the public such as a supermark.docxHomeworkChoose a site used by the public such as a supermark.docx
HomeworkChoose a site used by the public such as a supermark.docxsimonithomas47935
 
Homework 2 Please answer the following questions in small paragraph.docx
Homework 2 Please answer the following questions in small paragraph.docxHomework 2 Please answer the following questions in small paragraph.docx
Homework 2 Please answer the following questions in small paragraph.docxsimonithomas47935
 
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docx
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docxHomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docx
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docxsimonithomas47935
 
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docxHomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docxsimonithomas47935
 
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docx
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docxHomeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docx
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docxsimonithomas47935
 
Home work 8 Date 042220201. what are the different between.docx
Home work  8 Date 042220201. what are the  different between.docxHome work  8 Date 042220201. what are the  different between.docx
Home work 8 Date 042220201. what are the different between.docxsimonithomas47935
 

More from simonithomas47935 (20)

Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docx
Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docxHours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docx
Hours, A. (2014). Reading Fairy Tales and Playing A Way of Treati.docx
 
How are authentication and authorization alike and how are the.docx
How are authentication and authorization alike and how are the.docxHow are authentication and authorization alike and how are the.docx
How are authentication and authorization alike and how are the.docx
 
How are self-esteem and self-concept different What is the or.docx
How are self-esteem and self-concept different What is the or.docxHow are self-esteem and self-concept different What is the or.docx
How are self-esteem and self-concept different What is the or.docx
 
How are morality and religion similar and how are they different.docx
How are morality and religion similar and how are they different.docxHow are morality and religion similar and how are they different.docx
How are morality and religion similar and how are they different.docx
 
How are financial statements used to evaluate business activities.docx
How are financial statements used to evaluate business activities.docxHow are financial statements used to evaluate business activities.docx
How are financial statements used to evaluate business activities.docx
 
How are Japanese and Chinese Americans similar How are they differe.docx
How are Japanese and Chinese Americans similar How are they differe.docxHow are Japanese and Chinese Americans similar How are they differe.docx
How are Japanese and Chinese Americans similar How are they differe.docx
 
Hot Spot PolicingPlace can be an important aspect of crime and.docx
Hot Spot PolicingPlace can be an important aspect of crime and.docxHot Spot PolicingPlace can be an important aspect of crime and.docx
Hot Spot PolicingPlace can be an important aspect of crime and.docx
 
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docx
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docxHOSP3075 Brand Analysis Paper 1This is the first of three assignme.docx
HOSP3075 Brand Analysis Paper 1This is the first of three assignme.docx
 
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docx
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docxHou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docx
Hou, J., Li, Y., Yu, J. & Shi, W. (2020). A Survey on Digital Fo.docx
 
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docx
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docxHow (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docx
How (Not) to be Secular by James K.A. SmithSecular (1)—the ea.docx
 
Hopefully, you enjoyed this class on Digital Media and Society.Q.docx
Hopefully, you enjoyed this class on Digital Media and Society.Q.docxHopefully, you enjoyed this class on Digital Media and Society.Q.docx
Hopefully, you enjoyed this class on Digital Media and Society.Q.docx
 
hoose (1) one childhood experience from the list provided below..docx
hoose (1) one childhood experience from the list provided below..docxhoose (1) one childhood experience from the list provided below..docx
hoose (1) one childhood experience from the list provided below..docx
 
honesty, hard work, caring, excellence HIS 1110 Dr. .docx
honesty, hard work, caring, excellence  HIS 1110      Dr. .docxhonesty, hard work, caring, excellence  HIS 1110      Dr. .docx
honesty, hard work, caring, excellence HIS 1110 Dr. .docx
 
hoose one of the four following visualsImage courtesy o.docx
hoose one of the four following visualsImage courtesy o.docxhoose one of the four following visualsImage courtesy o.docx
hoose one of the four following visualsImage courtesy o.docx
 
HomeworkChoose a site used by the public such as a supermark.docx
HomeworkChoose a site used by the public such as a supermark.docxHomeworkChoose a site used by the public such as a supermark.docx
HomeworkChoose a site used by the public such as a supermark.docx
 
Homework 2 Please answer the following questions in small paragraph.docx
Homework 2 Please answer the following questions in small paragraph.docxHomework 2 Please answer the following questions in small paragraph.docx
Homework 2 Please answer the following questions in small paragraph.docx
 
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docx
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docxHomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docx
HomeNotificationsMy CommunityBBA 2010-16J-5A21-S1, Introductio.docx
 
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docxHomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
 
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docx
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docxHomeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docx
Homeless The Motel Kids of Orange CountyWrite a 1-2 page pa.docx
 
Home work 8 Date 042220201. what are the different between.docx
Home work  8 Date 042220201. what are the  different between.docxHome work  8 Date 042220201. what are the  different between.docx
Home work 8 Date 042220201. what are the different between.docx
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 

Recently uploaded (20)

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 

Debate Initial Post and Response Rubric Student Name .docx

  • 1. Debate Initial Post and Response Rubric Student Name: Faculty Grading: Assignment Grade: Inadequate information 0 points Some information, but incomplete or inconclusive 1.6 points Complete and Informative information 2 points Points Statement of issue is clear and concise Argument pro/con is explanatory, convincing and
  • 2. non-speculative Conclusion/Recommendation is specific with a definitive recommendation References are appropriate and current Total Points: Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Chapter 11 Database Performance Tuning and Query Optimization ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
  • 3. Learning ObjectivesIn this chapter, the student will learn:Basic database performance-tuning conceptsHow a DBMS processes SQL queriesAbout the importance of indexes in query processingAbout the types of decisions the query optimizer has to makeSome common practices used to write efficient SQL codeHow to formulate queries and tune the DBMS for optimal performance * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Database Performance-Tuning ConceptsGoal of database performance is to execute queries as fast as possibleDatabase performance tuning: Set of activities and procedures that reduce response time of database systemFine-tuning the performance of a system requires that all factors must operate at optimum level with minimal bottlenecks * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 11.1 - General Guidelines for Better System Performance * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Performance Tuning: Client and ServerClient sideSQL
  • 4. performance tuning: Generates SQL query that returns correct answer in least amount of timeUsing minimum amount of resources at serverServer sideDBMS performance tuning: DBMS environment configured to respond to clients’ requests as fast as possibleOptimum use of existing resources * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. DBMS ArchitectureAll data in a database are stored in data filesData files automatically expand in predefined increments known as extendsData files are grouped in file groups or table spacesTable space or file group: Logical grouping of several data files that store data with similar characteristicsData cache or buffer cache: Shared, reserved memory areaStores most recently accessed data blocks in RAM * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. DBMS ArchitectureSQL cache or procedure cache: Stores most recently executed SQL statements or PL/SQL proceduresDBMS retrieves data from permanent storage and places them in RAMInput/output request: Low-level data access operation that reads or writes data to and from computer devicesData cache is faster than working with data filesMajority of performance- tuning activities focus on minimizing I/O operations *
  • 5. ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 11.1 - Basic DBMS Architecture * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Database Query Optimization ModesAlgorithms proposed for query optimization are based on:Selection of the optimum order to achieve the fastest execution timeSelection of sites to be accessed to minimize communication costsEvaluated on the basis of:Operation modeTiming of its optimization * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Classification of Operation ModesAutomatic query optimization: DBMS finds the most cost-effective access path without user interventionManual query optimization: Requires that the optimization be selected and scheduled by the end user or programmer * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
  • 6. Classification Based on Timing of Optimization Static query optimization: best optimization strategy is selected when the query is compiled by the DBMSTakes place at compilation timeDynamic query optimization: Access strategy is dynamically determined by the DBMS at run time, using the most up-to-date information about the databaseTakes place at execution time * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Classification Based on Type of Information Used to Optimize the QueryStatistically based query optimization algorithm: Statistics are used by the DBMS to determine the best access strategyStatistical information is generated by DBMS through:Dynamic statistical generation modeManual statistical generation modeRule-based query optimization algorithm: based on a set of user-defined rules to determine the best query access strategy * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 11.2 - Sample Database Statistics Measurements * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
  • 7. Query Processing * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SQL Parsing PhaseQuery is broken down into smaller units Original SQL query is transformed into slightly different version of the original SQL code which is fully equivalent and more efficientQuery optimizer: Analyzes SQL query and finds most efficient way to access dataAccess plans: DBMS-specific and translate client’s SQL query into a series of complex I/O operations * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SQL Parsing PhaseIf access plan already exists for query in SQL cache, DBMS reuses itIf not, optimizer evaluates various plans and chooses one to be placed in SQL cache for use * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SQL Execution PhaseAll I/O operations indicated in the access plan are executedLocks are acquiredData are retrieved and
  • 8. placed in data cacheTransaction management commands are processed * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SQL Fetching PhaseRows of resulting query result set are returned to clientDBMS may use temporary table space to store temporary dataDatabase server coordinates the movement of the result set rows from the server cache to the client cache * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Query Processing BottlenecksDelay introduced in the processing of an I/O operation that slows the systemCaused by the:CPURAMHard diskNetworkApplication code * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Indexes and Query OptimizationIndexesHelp speed up data accessFacilitate searching, sorting, using aggregate functions, and join operationsOrdered set of values that contain the index key and pointersMore efficient than a full table scan *
  • 9. ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Indexes and Query OptimizationData sparsity: Number of different values a column could haveData structures used to implement indexes:Hash indexesB-tree indexesBitmap indexesDBMSs determine best type of index to use * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Optimizer ChoicesRule-based optimizer: Uses preset rules and points to determine the best approach to execute a queryCost- based optimizer: Uses algorithms based on statistics about objects being accessed to determine the best approach to execute a query * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Using Hints to Affect Optimizer ChoicesOptimizer might not choose the best execution planMakes decisions based on existing statistics, which might be oldMight choose less- efficient decisionsOptimizer hints: Special instructions for the optimizer, embedded in the SQL command text *
  • 10. ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 11.5 - Optimizer Hints * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SQL Performance TuningEvaluated from client perspectiveMost current relational DBMSs perform automatic query optimization at the server endMost SQL performance optimization techniques are DBMS-specific and thus rarely portableMajority of performance problems are related to poorly written SQL code * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Index SelectivityMeasure of the likelihood that an index will be used in query processingIndexes are used when a subset of rows from a large table is to be selected based on a given conditionIndex cannot always be used to improve performanceFunction-based index: Based on a specific SQL function or expression * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
  • 11. Conditional ExpressionsExpressed within WHERE or HAVING clauses of a SQL statementRestricts the output of a query to only rows matching conditional criteriaGuidelines to write efficient conditional expressions in SQL codeUse simple columns or literals as operandsNumeric field comparisons are faster than character, date, and NULL comparisons * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Conditional ExpressionsEquality comparisons are faster than inequality comparisonsTransform conditional expressions to use literalsWrite equality conditions first when using multiple conditional expressionsWhen using multiple AND conditions, write the condition most likely to be false firstWhen using multiple OR conditions, put the condition most likely to be true firstAvoid the use of NOT logical operator * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Query FormulationIdentify what columns and computations are requiredIdentify source tablesDetermine how to join tablesDetermine what selection criteria are neededDetermine the order in which to display the output * ©2015 Cengage Learning. All Rights Reserved. May not be
  • 12. scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. DBMS Performance TuningManaging DBMS processes in primary memory and the structures in physical storageDBMS performance tuning at server end focuses on setting parameters used for:Data cacheSQL cacheSort cacheOptimizer modeIn- memory database: Store large portions of the database in primary storage * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. DBMS Performance TuningRecommendations for physical storage of databases:Use RAID (Redundant Array of Independent Disks) to provide a balance between performance improvement and fault toleranceMinimize disk contentionPut high-usage tables in their own table spacesAssign separate data files in separate storage volumes for indexes, system, and high- usage tables * ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. DBMS Performance TuningTake advantage of the various table storage organizations in the databaseIndex-organized table or clustered index table: Stores the end-user data and the index data in consecutive locations in permanent storagePartition tables based on usageUse denormalized tables where
  • 13. appropriateStore computed and aggregate attributes in tables *