SlideShare a Scribd company logo
Database
Performance
Tuning
By Rahul
Gulab Singh
Agenda
 Physical structure of databases
 Phases of Query Processing and Query Plan
 Indexes and Maintenance
 How to monitor and track queries in the
background
 Sql Server Profiler , Activity Monitor , Sql Server
Reports and Extended Events
 Common Performance Issues and Resolutions
Physical Structure of Database
 Demo
 What is the purpose of Log File and Data File
Purpose of data and Log file
Physical Structure Performance
Tuning Steps.
 Separate Data File from Log file
 Set Initial Size for Data file and log file
 Tempdb on separate drive
Phases of Query Processing and
Query Plan
 What Happens when Query is executed
 Step1 – Checks Syntax of the Query
 Step2 – Check if a Plan is already created
 Step3 –Creates Plan if not created based on Data
, Indexes , Uniqueness , Statistics
 Step5- Execute the Plan
 Benefits of Procedure over Adhoc Queries
Query plan Demo
 Demo
 Sys.dm_exec_cache_plan
 Sys.dm_exec_query_plan()
 Sys.dm_exec_sql_text()
Indexes
 Sql Server Index Method
 Clustered Index --- Scan and Seek
 Non-Clustered Indexes– Scan and Seek
 Covering Indexes
 Filtered Indexes
 Full text Indexes
 Spatial Indexes
 Column Store Indexes
Sales Table
 Data
Clustered Index
Non-Clustered Index
Covering Indexes
Other Indexes
 Filtered Indexes
 Spatial Indexes
 XML Indexes
 Fulltext Indexes
Index Maintenance –Fill Factor
Index Maintenance- page Split
Page Linkages Brokes
Index Maintenance
 Fill Factor , Page Split , Linkages moved
 Alter Rebuild and Re-organize Commands
 Sys.dm_db_index_physical_stats
 Sys.dm_db_index_usage_stats
 Sys.dm_db_missing_index_
 Statistics and maintenance
 Update Statistics tblname with fullscan
What has been Covered till Now
 Physical Structure
 Query processing Steps , Query Plan
 Indexes Analysis , Maintenance
How to monitor and track queries
in the background
 Dynamic Management Views and Functions
 Information about DB server Various
Dimensions namely Hardware , OS , DB
Internals various Component s
 Sp_who2 and Sp_who4
 Common DMV used.
DEMO
 Sys.dm_exec_query_stats
 Sys.dm_exec_requests
 Sys.dm_exec_Sqltext()
 Plan_Handle and Sql_handle
Sql Server Profiler
 When to use Profiler
 Precautions in using Profiler
 How to import Profiler data in a Sql server
table
 Demo
Monitoring Tools
 Activity Monitor Demo
 SQL Server Reports
 Performance Counters Demo
 SQl Server Extended Events
Common Performance Issues
and Resolutions
 CPU utilization 100% for DB server
 Connect to DB server
 Increase the Timeout to 100 seconds
 Run Sys.dm_exec_query_stats with
sys.dm_exec_sql_text
 Run Update Statistics with full scan on current
wait tables
Common Performance Issues
and Resolutions
 Severe Blocking Happening on server
 Run Sp_who4
 Check the Blocker Head
 Kill the Blocker Head
 Still issue persist
 Run Update Stats
Common Performance Issues
and Resolutions
 Frequent Deadlocks occurring on server
 Track Deadlocks through extended events
 Track Deadlocks through DBCC Traceon
 Steps to reduce Deadlocks
 With(nolock) , Make transactions Shorter
Common Performance Issues
and Resolutions
 Frequent Performance issues occurring
 Tried all aspects of indexes and maintenance
and still no luck
 Only Solution Archiving
 HDFC Site Example
What we have Covered
 Physical structure of databases
 Phases of Query Processing and Query Plan
 Indexes and Maintenance
 How to monitor and track queries in the
background
 Sql Server Profiler , Activity Monitor , Sql Server
Reports and Extended Events
 Common Performance Issues and Resolutions
Books and Resources
 Sql server Internals by Kimberlay
 Query Performance Distilled by Grant Fritchey
 Inside Microsoft sql server T-sql series by Itzik
Ben-Gan
 Sql server Administrator by Wrox Series

More Related Content

What's hot

Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance Tuning
OracleTrainings
 
Sql server lesson12
Sql server lesson12Sql server lesson12
Sql server lesson12
Ala Qunaibi
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL Server
Rajesh Gunasundaram
 
Firebird's Big Databases (in English)
Firebird's Big Databases (in English)Firebird's Big Databases (in English)
Firebird's Big Databases (in English)
Alexey Kovyazin
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance Tuning
Bala Subra
 
Life with big Firebird databases
Life with big Firebird databasesLife with big Firebird databases
Life with big Firebird databases
Alexey Kovyazin
 
Sql server performance tuning and optimization
Sql server performance tuning and optimizationSql server performance tuning and optimization
Sql server performance tuning and optimization
Manish Rawat
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)
Guy Harrison
 
Sql server lesson13
Sql server lesson13Sql server lesson13
Sql server lesson13
Ala Qunaibi
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuning
Jugal Shah
 
SQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database PerformanceSQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database Performance
Mark Ginnebaugh
 
Proactive performance monitoring with adaptive thresholds
Proactive performance monitoring with adaptive thresholdsProactive performance monitoring with adaptive thresholds
Proactive performance monitoring with adaptive thresholds
John Beresniewicz
 
Firebird Anti-Corruption Approach
Firebird Anti-Corruption ApproachFirebird Anti-Corruption Approach
Firebird Anti-Corruption ApproachAlexey Kovyazin
 
Why & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to queryWhy & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to queryAntonios Chatzipavlis
 
SQL Server Optimization Checklist
SQL Server Optimization ChecklistSQL Server Optimization Checklist
SQL Server Optimization Checklist
Grant Fritchey
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
Enkitec
 
Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning
Kernel Training
 
Firebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeonFirebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeon
Alexey Kovyazin
 
Professional tools for Firebird optimization and maintenance from IBSurgeon
Professional tools for Firebird optimization and maintenance from IBSurgeonProfessional tools for Firebird optimization and maintenance from IBSurgeon
Professional tools for Firebird optimization and maintenance from IBSurgeon
Alexey Kovyazin
 

What's hot (20)

Oracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance TuningOracle Performance Tuning Training | Oracle Performance Tuning
Oracle Performance Tuning Training | Oracle Performance Tuning
 
Sql server lesson12
Sql server lesson12Sql server lesson12
Sql server lesson12
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL Server
 
Firebird's Big Databases (in English)
Firebird's Big Databases (in English)Firebird's Big Databases (in English)
Firebird's Big Databases (in English)
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance Tuning
 
Life with big Firebird databases
Life with big Firebird databasesLife with big Firebird databases
Life with big Firebird databases
 
Sql server performance tuning and optimization
Sql server performance tuning and optimizationSql server performance tuning and optimization
Sql server performance tuning and optimization
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
 
Sql server lesson13
Sql server lesson13Sql server lesson13
Sql server lesson13
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuning
 
SQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database PerformanceSQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database Performance
 
Proactive performance monitoring with adaptive thresholds
Proactive performance monitoring with adaptive thresholdsProactive performance monitoring with adaptive thresholds
Proactive performance monitoring with adaptive thresholds
 
Firebird Anti-Corruption Approach
Firebird Anti-Corruption ApproachFirebird Anti-Corruption Approach
Firebird Anti-Corruption Approach
 
Why & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to queryWhy & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to query
 
SQL Server Optimization Checklist
SQL Server Optimization ChecklistSQL Server Optimization Checklist
SQL Server Optimization Checklist
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning Oracle Oracle Performance Tuning
Oracle Oracle Performance Tuning
 
Firebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeonFirebird recovery tools and techniques by IBSurgeon
Firebird recovery tools and techniques by IBSurgeon
 
Professional tools for Firebird optimization and maintenance from IBSurgeon
Professional tools for Firebird optimization and maintenance from IBSurgeonProfessional tools for Firebird optimization and maintenance from IBSurgeon
Professional tools for Firebird optimization and maintenance from IBSurgeon
 

Similar to Database Performance Tuning| Rahul Gulab Singh

Performance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 TsqlPerformance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 Tsql
coolajju143
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
Antonios Chatzipavlis
 
Profiling its okay in sql server
Profiling its okay in sql serverProfiling its okay in sql server
Profiling its okay in sql serverunclebiguns
 
SQL Server - High availability
SQL Server - High availabilitySQL Server - High availability
SQL Server - High availability
Peter Gfader
 
Query Tuning Azure SQL Databases
Query Tuning Azure SQL DatabasesQuery Tuning Azure SQL Databases
Query Tuning Azure SQL Databases
Grant Fritchey
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101Quest Software
 
Database Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
DAGEOP LTD
 
Practical SQL query monitoring and optimization
Practical SQL query monitoring and optimizationPractical SQL query monitoring and optimization
Practical SQL query monitoring and optimization
Ivo Andreev
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Zohar Elkayam
 
Under New Management
Under New ManagementUnder New Management
Under New Management
ukdpe
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
Dilfaroz Khan
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center Advisor
Eduardo Castro
 
Implementing Auditing in SQL Server
Implementing Auditing in SQL ServerImplementing Auditing in SQL Server
Implementing Auditing in SQL Server
David Dye
 
ORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGSanthosh Sap
 
Query Store and live Query Statistics
Query Store and live Query StatisticsQuery Store and live Query Statistics
Query Store and live Query Statistics
SolidQ
 
05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx
KareemBullard1
 
Getting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentationGetting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentation
Berry Clemens
 
PASS VC: SQL Server Performance Monitoring and Baselining
PASS VC: SQL Server Performance Monitoring and BaseliningPASS VC: SQL Server Performance Monitoring and Baselining
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServiceswebuploader
 
Siebel monitoring
Siebel monitoringSiebel monitoring
Siebel monitoring
Sarnindar Purewal
 

Similar to Database Performance Tuning| Rahul Gulab Singh (20)

Performance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 TsqlPerformance Monitoring And Tuning In Sql Server 2008 Tsql
Performance Monitoring And Tuning In Sql Server 2008 Tsql
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
 
Profiling its okay in sql server
Profiling its okay in sql serverProfiling its okay in sql server
Profiling its okay in sql server
 
SQL Server - High availability
SQL Server - High availabilitySQL Server - High availability
SQL Server - High availability
 
Query Tuning Azure SQL Databases
Query Tuning Azure SQL DatabasesQuery Tuning Azure SQL Databases
Query Tuning Azure SQL Databases
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101
 
Database Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
 
Practical SQL query monitoring and optimization
Practical SQL query monitoring and optimizationPractical SQL query monitoring and optimization
Practical SQL query monitoring and optimization
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Under New Management
Under New ManagementUnder New Management
Under New Management
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center Advisor
 
Implementing Auditing in SQL Server
Implementing Auditing in SQL ServerImplementing Auditing in SQL Server
Implementing Auditing in SQL Server
 
ORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAININGORACLE APPS DBA ONLINE TRAINING
ORACLE APPS DBA ONLINE TRAINING
 
Query Store and live Query Statistics
Query Store and live Query StatisticsQuery Store and live Query Statistics
Query Store and live Query Statistics
 
05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx
 
Getting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentationGetting optimal performance from oracle e-business suite presentation
Getting optimal performance from oracle e-business suite presentation
 
PASS VC: SQL Server Performance Monitoring and Baselining
PASS VC: SQL Server Performance Monitoring and BaseliningPASS VC: SQL Server Performance Monitoring and Baselining
PASS VC: SQL Server Performance Monitoring and Baselining
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServices
 
Siebel monitoring
Siebel monitoringSiebel monitoring
Siebel monitoring
 

More from Rahul Singh

Microsoft sql server database administration
Microsoft sql server database administrationMicrosoft sql server database administration
Microsoft sql server database administration
Rahul Singh
 
PMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul SinghPMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul Singh
Rahul Singh
 
Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh
Rahul Singh
 
Bhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul SinghBhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul Singh
Rahul Singh
 
Public speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab SinghPublic speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab Singh
Rahul Singh
 
How to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SInghHow to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SIngh
Rahul Singh
 
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab SingBig data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
Rahul Singh
 
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods  | Artificial Intelligence | Rahul Gulab SinghData scientist Methods  | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
Rahul Singh
 
Amazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SInghAmazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SIngh
Rahul Singh
 
Attitude is everything | Rahul Singh
Attitude is everything | Rahul SinghAttitude is everything | Rahul Singh
Attitude is everything | Rahul Singh
Rahul Singh
 

More from Rahul Singh (10)

Microsoft sql server database administration
Microsoft sql server database administrationMicrosoft sql server database administration
Microsoft sql server database administration
 
PMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul SinghPMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul Singh
 
Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh
 
Bhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul SinghBhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul Singh
 
Public speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab SinghPublic speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab Singh
 
How to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SInghHow to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SIngh
 
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab SingBig data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
 
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods  | Artificial Intelligence | Rahul Gulab SinghData scientist Methods  | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
 
Amazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SInghAmazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SIngh
 
Attitude is everything | Rahul Singh
Attitude is everything | Rahul SinghAttitude is everything | Rahul Singh
Attitude is everything | Rahul Singh
 

Recently uploaded

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
ViralQR
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 

Recently uploaded (20)

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 

Database Performance Tuning| Rahul Gulab Singh

  • 2. Agenda  Physical structure of databases  Phases of Query Processing and Query Plan  Indexes and Maintenance  How to monitor and track queries in the background  Sql Server Profiler , Activity Monitor , Sql Server Reports and Extended Events  Common Performance Issues and Resolutions
  • 3. Physical Structure of Database  Demo  What is the purpose of Log File and Data File
  • 4. Purpose of data and Log file
  • 5. Physical Structure Performance Tuning Steps.  Separate Data File from Log file  Set Initial Size for Data file and log file  Tempdb on separate drive
  • 6. Phases of Query Processing and Query Plan  What Happens when Query is executed  Step1 – Checks Syntax of the Query  Step2 – Check if a Plan is already created  Step3 –Creates Plan if not created based on Data , Indexes , Uniqueness , Statistics  Step5- Execute the Plan  Benefits of Procedure over Adhoc Queries
  • 7.
  • 8. Query plan Demo  Demo  Sys.dm_exec_cache_plan  Sys.dm_exec_query_plan()  Sys.dm_exec_sql_text()
  • 9. Indexes  Sql Server Index Method  Clustered Index --- Scan and Seek  Non-Clustered Indexes– Scan and Seek  Covering Indexes  Filtered Indexes  Full text Indexes  Spatial Indexes  Column Store Indexes
  • 14. Other Indexes  Filtered Indexes  Spatial Indexes  XML Indexes  Fulltext Indexes
  • 18. Index Maintenance  Fill Factor , Page Split , Linkages moved  Alter Rebuild and Re-organize Commands  Sys.dm_db_index_physical_stats  Sys.dm_db_index_usage_stats  Sys.dm_db_missing_index_  Statistics and maintenance  Update Statistics tblname with fullscan
  • 19. What has been Covered till Now  Physical Structure  Query processing Steps , Query Plan  Indexes Analysis , Maintenance
  • 20. How to monitor and track queries in the background  Dynamic Management Views and Functions  Information about DB server Various Dimensions namely Hardware , OS , DB Internals various Component s  Sp_who2 and Sp_who4  Common DMV used.
  • 21. DEMO  Sys.dm_exec_query_stats  Sys.dm_exec_requests  Sys.dm_exec_Sqltext()  Plan_Handle and Sql_handle
  • 22. Sql Server Profiler  When to use Profiler  Precautions in using Profiler  How to import Profiler data in a Sql server table  Demo
  • 23. Monitoring Tools  Activity Monitor Demo  SQL Server Reports  Performance Counters Demo  SQl Server Extended Events
  • 24. Common Performance Issues and Resolutions  CPU utilization 100% for DB server  Connect to DB server  Increase the Timeout to 100 seconds  Run Sys.dm_exec_query_stats with sys.dm_exec_sql_text  Run Update Statistics with full scan on current wait tables
  • 25. Common Performance Issues and Resolutions  Severe Blocking Happening on server  Run Sp_who4  Check the Blocker Head  Kill the Blocker Head  Still issue persist  Run Update Stats
  • 26. Common Performance Issues and Resolutions  Frequent Deadlocks occurring on server  Track Deadlocks through extended events  Track Deadlocks through DBCC Traceon  Steps to reduce Deadlocks  With(nolock) , Make transactions Shorter
  • 27. Common Performance Issues and Resolutions  Frequent Performance issues occurring  Tried all aspects of indexes and maintenance and still no luck  Only Solution Archiving  HDFC Site Example
  • 28. What we have Covered  Physical structure of databases  Phases of Query Processing and Query Plan  Indexes and Maintenance  How to monitor and track queries in the background  Sql Server Profiler , Activity Monitor , Sql Server Reports and Extended Events  Common Performance Issues and Resolutions
  • 29. Books and Resources  Sql server Internals by Kimberlay  Query Performance Distilled by Grant Fritchey  Inside Microsoft sql server T-sql series by Itzik Ben-Gan  Sql server Administrator by Wrox Series