SlideShare a Scribd company logo
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

Sql good practices
Sql good practicesSql good practices
Sql good practices
Deepak Mehtani
 
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
Senturus
 
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
Hari 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 Webinar
Impetus Technologies
 
Database AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxDatabase AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docx
whittemorelucilla
 
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
 
ch12text.pdf
ch12text.pdfch12text.pdf
ch12text.pdf
HashimAli631806
 
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-WebFramework
guestecd4c7
 
(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
AshrafShooosh
 
Postgres in production.2014
Postgres in production.2014Postgres in production.2014
Postgres in production.2014
EDB
 
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
 
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
malonzo
 

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..
 
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
 

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.docx
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docxHomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
HomeAnnouncementsSyllabusDiscussionsQuizzesGra.docx
simonithomas47935
 
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
simonithomas47935
 
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
simonithomas47935
 

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

Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

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 *