SlideShare a Scribd company logo
1 of 17
SQL SERVER
ENTERPRISE
AWARENESS
By Hamid J. Fard
Microsoft Certified Master: SQL Server 2008
Microsoft Certified Solutions Master: Charter-Data Platform
CIW Database Design Specialist
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Agenda
• What MattersToYou?
• DoYou Believe in High End Hardware?
• SQL Server Enterprise Edition (Internal Features)
• Advance Scan (Merry-Go-Round)
• Fast Recovery
• Prefetching
• Single Scatter Scan
• Automation Matching
• Role Reversal
• Partitioning
• Data Compression
• DeferredTransaction
• Resource Governor
• Vardecimal Storage Formatting
• Conclusion
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
What MattersToYou?
Manageability Performance Storage Space Disaster Recovery Cost
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
DoYou Believe in High End Hardware?
YES
 NO
Without High End Software,Your High End Hardware IsWorthless.
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
SQL Server Internal Features vs. Editions
Feature Enterprise Standard
Advance Scan (Merry-Go-Round)  
Fast Recovery  
Prefetching  
Single Scatter Scan  
Automation Matching  
Role Reversal  
Partitioning  
Data Compression  
DeferredTransaction  
Resource Governor  
Vardecimal Storage Formatting  
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Advance Scan (Marry-Go-Round)
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Table A
User A
User B
SQL Server Optimizer Engine
Query
Buffer
Query
Buffer
Query
BufferRead
Fast Recovery
Analysis Phase Redo Phase Undo Phase
Database Recovery Lifecycle
Database is Available
By Lock-Logging
Database is Under Recovery UncommittedTransactions
are Roll-Backed
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Prefetching
Select E.ID, E.FN, E.LN, D.Designation From Employee E Inner Join Designation D On E.Designation_ID = D.ID
Designation
Employee
Read Synchronously
Read Asynchronously
Project Resultset
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Single Scatter Scan
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
465
308
488
489
ListofLeafPages
Automation Matching
CreateTable dbo.Test (ID Bigint, Batch Char(10), BatchID As Cast(ID As Char) + Batch Persisted)
Select ID, Batch From dbo.Test Where Cast ( ID As Char ) + Batch = ‘1045623’
Select ID, Batch From dbo.Test Where BatchID = ‘1045623’
ConvertsTo
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Role Reversal
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Build Input
Probe Input
Hash MatchResultset
Partitioning
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Dbo.Sales
2016-2017
Filegroup 1
Dbo.Sales
2015-2016
Filegroup 2
Dbo.Sales
2014-2015
Filegroup 3
Query
Dbo.Sales
Data Compression
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
dbo.Sales
1 Billion Rows
186GB Data Size
23,250,000,000,000 Data Pages
dbo.Sales
1 Billion Rows
108GB Data Size
1,4557,760,000 Data Pages
Data Compression Up to 40%
DeferredTransaction
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
In Other Editions, A CorruptedTransaction Causes Database StartupTo Fail
Analysis Phase Roll Forward Phase Roll Back Phase
Transaction Recovery Lifecycle
Transaction Uncommitted Transaction Not Rolled Back
Due toCorruptedTransaction Log I/O
Resource Governor
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
Memory: 64GB
Processor: 8 Logical Processor
DB_A
Max Memory: 12GB
Max Processor: 2 Logical Processors
Max IOPS: 500
DB_B
Max Memory: 24GB
Max Processor: 4 Logical Processors
Max IOPS: 2000
AppA
App B
Vardecimal Storage Formatting
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
ID Full Name Savings
1 John Smith 50,000
2 BillGates 97,000,000,000
3 KevinWood 500
20 Bytes
20 Bytes
20 Bytes
ID Full Name Savings
1 John Smith 50,000
2 BillGates 97,000,000,000
3 KevinWood 500
5 Bytes
20 Bytes
5 Bytes
Conclusion
If SQL Server Enterprise is Expensive,
What About Other Editions!
Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.

More Related Content

What's hot

Improving Pandas and PySpark interoperability with Apache Arrow
Improving Pandas and PySpark interoperability with Apache ArrowImproving Pandas and PySpark interoperability with Apache Arrow
Improving Pandas and PySpark interoperability with Apache Arrow
Li Jin
 
Archmage, Pinterest’s Real-time Analytics Platform on Druid
Archmage, Pinterest’s Real-time Analytics Platform on DruidArchmage, Pinterest’s Real-time Analytics Platform on Druid
Archmage, Pinterest’s Real-time Analytics Platform on Druid
Imply
 
Data stage scenario design4 - job1
Data stage scenario   design4 - job1Data stage scenario   design4 - job1
Data stage scenario design4 - job1
Naresh Bala
 

What's hot (17)

Webinar: High Performance MongoDB Applications with IBM POWER8
Webinar: High Performance MongoDB Applications with IBM POWER8Webinar: High Performance MongoDB Applications with IBM POWER8
Webinar: High Performance MongoDB Applications with IBM POWER8
 
Elastic Stack Roadmap Deep Dive
Elastic Stack Roadmap Deep DiveElastic Stack Roadmap Deep Dive
Elastic Stack Roadmap Deep Dive
 
Postgres.foreign.data.wrappers.2015
Postgres.foreign.data.wrappers.2015Postgres.foreign.data.wrappers.2015
Postgres.foreign.data.wrappers.2015
 
Improving Pandas and PySpark interoperability with Apache Arrow
Improving Pandas and PySpark interoperability with Apache ArrowImproving Pandas and PySpark interoperability with Apache Arrow
Improving Pandas and PySpark interoperability with Apache Arrow
 
Spectator to Participant. Contributing to Cassandra (Patrick McFadin, DataSta...
Spectator to Participant. Contributing to Cassandra (Patrick McFadin, DataSta...Spectator to Participant. Contributing to Cassandra (Patrick McFadin, DataSta...
Spectator to Participant. Contributing to Cassandra (Patrick McFadin, DataSta...
 
GraphTour - Closing Keynote
GraphTour - Closing KeynoteGraphTour - Closing Keynote
GraphTour - Closing Keynote
 
Archmage, Pinterest’s Real-time Analytics Platform on Druid
Archmage, Pinterest’s Real-time Analytics Platform on DruidArchmage, Pinterest’s Real-time Analytics Platform on Druid
Archmage, Pinterest’s Real-time Analytics Platform on Druid
 
Foreign Data Wrappers and You with Postgres
Foreign Data Wrappers and You with PostgresForeign Data Wrappers and You with Postgres
Foreign Data Wrappers and You with Postgres
 
Elastic Stack Roadmap Deep Dive
Elastic Stack Roadmap Deep DiveElastic Stack Roadmap Deep Dive
Elastic Stack Roadmap Deep Dive
 
Sparkler Presentation for Spark Summit East 2017
Sparkler Presentation for Spark Summit East 2017Sparkler Presentation for Spark Summit East 2017
Sparkler Presentation for Spark Summit East 2017
 
Análisis del roadmap del Elastic Stack
Análisis del roadmap del Elastic StackAnálisis del roadmap del Elastic Stack
Análisis del roadmap del Elastic Stack
 
The Evolution of the Fashion Retail Industry in the Age of AI with Kshitij Ku...
The Evolution of the Fashion Retail Industry in the Age of AI with Kshitij Ku...The Evolution of the Fashion Retail Industry in the Age of AI with Kshitij Ku...
The Evolution of the Fashion Retail Industry in the Age of AI with Kshitij Ku...
 
GraphTour - Neo4j Database Overview
GraphTour - Neo4j Database OverviewGraphTour - Neo4j Database Overview
GraphTour - Neo4j Database Overview
 
Building Data Applications with Apache Druid
Building Data Applications with Apache DruidBuilding Data Applications with Apache Druid
Building Data Applications with Apache Druid
 
Hermes: Free the Data! Distributed Computing with MongoDB
Hermes: Free the Data! Distributed Computing with MongoDBHermes: Free the Data! Distributed Computing with MongoDB
Hermes: Free the Data! Distributed Computing with MongoDB
 
Data stage scenario design4 - job1
Data stage scenario   design4 - job1Data stage scenario   design4 - job1
Data stage scenario design4 - job1
 
What's the Scoop on Hadoop? How It Works and How to WORK IT!
What's the Scoop on Hadoop? How It Works and How to WORK IT!What's the Scoop on Hadoop? How It Works and How to WORK IT!
What's the Scoop on Hadoop? How It Works and How to WORK IT!
 

Viewers also liked

Dskp tmk thn 4 2013
Dskp tmk thn 4 2013Dskp tmk thn 4 2013
Dskp tmk thn 4 2013
Siti Fathiah
 
Brian Wright Resume
Brian Wright ResumeBrian Wright Resume
Brian Wright Resume
Brian Wright
 

Viewers also liked (14)

PANORAMA
PANORAMAPANORAMA
PANORAMA
 
Planner for Phialanthropy
Planner for PhialanthropyPlanner for Phialanthropy
Planner for Phialanthropy
 
Dskp tmk thn 4 2013
Dskp tmk thn 4 2013Dskp tmk thn 4 2013
Dskp tmk thn 4 2013
 
Teoría del origen de la vida nelson santos #33 5to a
Teoría del origen de la vida nelson santos #33 5to aTeoría del origen de la vida nelson santos #33 5to a
Teoría del origen de la vida nelson santos #33 5to a
 
Go faster with_native_compilation Part-2
Go faster with_native_compilation Part-2Go faster with_native_compilation Part-2
Go faster with_native_compilation Part-2
 
Evidencia
EvidenciaEvidencia
Evidencia
 
Danza - wc016
Danza - wc016Danza - wc016
Danza - wc016
 
Brian Wright Resume
Brian Wright ResumeBrian Wright Resume
Brian Wright Resume
 
Tecnologia - wc016
Tecnologia  - wc016Tecnologia  - wc016
Tecnologia - wc016
 
A day in our life
A day in our lifeA day in our life
A day in our life
 
ΠΑΡΟΣ από την τουρκοκρατία στο 1821
ΠΑΡΟΣ από την τουρκοκρατία στο 1821ΠΑΡΟΣ από την τουρκοκρατία στο 1821
ΠΑΡΟΣ από την τουρκοκρατία στο 1821
 
State Capitals Powerpoint
State Capitals PowerpointState Capitals Powerpoint
State Capitals Powerpoint
 
How to Make SQL Server Go Faster
How to Make SQL Server Go FasterHow to Make SQL Server Go Faster
How to Make SQL Server Go Faster
 
Manual del loc
Manual del locManual del loc
Manual del loc
 

Similar to Sql server enterprise edition awareness

Moving to the cloud azure, office365, and intune - concurrency
Moving to the cloud   azure, office365, and intune - concurrencyMoving to the cloud   azure, office365, and intune - concurrency
Moving to the cloud azure, office365, and intune - concurrency
Concurrency, Inc.
 

Similar to Sql server enterprise edition awareness (20)

Azure HDlnsight에서 R 및 Spark를 이용하여 확장 가능한 머신러닝
Azure HDlnsight에서 R 및 Spark를 이용하여 확장 가능한 머신러닝Azure HDlnsight에서 R 및 Spark를 이용하여 확장 가능한 머신러닝
Azure HDlnsight에서 R 및 Spark를 이용하여 확장 가능한 머신러닝
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic ToolPostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
 
IDERA Live | The Modern Query Optimizer
IDERA Live | The Modern Query OptimizerIDERA Live | The Modern Query Optimizer
IDERA Live | The Modern Query Optimizer
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOps
 
DDD&Scalaで作られたプロダクトはその後どうなったか?(Current state of products made with DDD & Scala)
DDD&Scalaで作られたプロダクトはその後どうなったか?(Current state of products made with DDD & Scala)DDD&Scalaで作られたプロダクトはその後どうなったか?(Current state of products made with DDD & Scala)
DDD&Scalaで作られたプロダクトはその後どうなったか?(Current state of products made with DDD & Scala)
 
Journey to SAS Analytics Grid with SAS, R, Python
Journey to SAS Analytics Grid with SAS, R, PythonJourney to SAS Analytics Grid with SAS, R, Python
Journey to SAS Analytics Grid with SAS, R, Python
 
Big Data LDN 2018: A TALE OF TWO BI STANDARDS: DATA WAREHOUSES AND DATA LAKES
Big Data LDN 2018: A TALE OF TWO BI STANDARDS: DATA WAREHOUSES AND DATA LAKESBig Data LDN 2018: A TALE OF TWO BI STANDARDS: DATA WAREHOUSES AND DATA LAKES
Big Data LDN 2018: A TALE OF TWO BI STANDARDS: DATA WAREHOUSES AND DATA LAKES
 
Oracle Migration to Postgres in the Cloud
Oracle Migration to Postgres in the CloudOracle Migration to Postgres in the Cloud
Oracle Migration to Postgres in the Cloud
 
Moving to the cloud azure, office365, and intune - concurrency
Moving to the cloud   azure, office365, and intune - concurrencyMoving to the cloud   azure, office365, and intune - concurrency
Moving to the cloud azure, office365, and intune - concurrency
 
Mii Oracle Biz Map 2009
Mii Oracle Biz Map 2009Mii Oracle Biz Map 2009
Mii Oracle Biz Map 2009
 
Building a Stock Prediction system with Machine Learning using Geode, SpringX...
Building a Stock Prediction system with Machine Learning using Geode, SpringX...Building a Stock Prediction system with Machine Learning using Geode, SpringX...
Building a Stock Prediction system with Machine Learning using Geode, SpringX...
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
Přehled portfolia ODA a praktických případů v regionu EMEA
Přehled portfolia ODA a praktických případů v regionu EMEAPřehled portfolia ODA a praktických případů v regionu EMEA
Přehled portfolia ODA a praktických případů v regionu EMEA
 
Remote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needsRemote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needs
 
Extending Analytics Beyond the Data Warehouse, ft. Warner Bros. Analytics (AN...
Extending Analytics Beyond the Data Warehouse, ft. Warner Bros. Analytics (AN...Extending Analytics Beyond the Data Warehouse, ft. Warner Bros. Analytics (AN...
Extending Analytics Beyond the Data Warehouse, ft. Warner Bros. Analytics (AN...
 
Reducing the Risks of Migrating Off Oracle
Reducing the Risks of Migrating Off OracleReducing the Risks of Migrating Off Oracle
Reducing the Risks of Migrating Off Oracle
 
Postgres Integrates Effectively in the "Enterprise Sandbox"
Postgres Integrates Effectively in the "Enterprise Sandbox"Postgres Integrates Effectively in the "Enterprise Sandbox"
Postgres Integrates Effectively in the "Enterprise Sandbox"
 
Best Practices & Lessons Learned from Deployment of PostgreSQL
 Best Practices & Lessons Learned from Deployment of PostgreSQL Best Practices & Lessons Learned from Deployment of PostgreSQL
Best Practices & Lessons Learned from Deployment of PostgreSQL
 
Serverless is a win for businesses, not just developers
Serverless is a win for businesses, not just developersServerless is a win for businesses, not just developers
Serverless is a win for businesses, not just developers
 
BeJUG Meetup - What's coming in the OSGi R7 Specification
BeJUG Meetup - What's coming in the OSGi R7 SpecificationBeJUG Meetup - What's coming in the OSGi R7 Specification
BeJUG Meetup - What's coming in the OSGi R7 Specification
 

More from Hamid J. Fard

Data Platform Overview
Data Platform OverviewData Platform Overview
Data Platform Overview
Hamid J. Fard
 
SQL Server 2016 Everything built-in FULL deck
SQL Server 2016 Everything built-in FULL deckSQL Server 2016 Everything built-in FULL deck
SQL Server 2016 Everything built-in FULL deck
Hamid J. Fard
 

More from Hamid J. Fard (12)

Sql server backup internals
Sql server backup internalsSql server backup internals
Sql server backup internals
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
SQL Server Memory Pressure
SQL Server Memory PressureSQL Server Memory Pressure
SQL Server Memory Pressure
 
SQL Server In-Memory Internals and Performance Tips
SQL Server In-Memory Internals and Performance TipsSQL Server In-Memory Internals and Performance Tips
SQL Server In-Memory Internals and Performance Tips
 
Fard Solutions Sdn Bhd
Fard Solutions Sdn Bhd Fard Solutions Sdn Bhd
Fard Solutions Sdn Bhd
 
Data Platform Overview
Data Platform OverviewData Platform Overview
Data Platform Overview
 
SQL Server 2016 Everything built-in FULL deck
SQL Server 2016 Everything built-in FULL deckSQL Server 2016 Everything built-in FULL deck
SQL Server 2016 Everything built-in FULL deck
 
SQL Server - Inside Optimizer Engine
SQL Server - Inside Optimizer EngineSQL Server - Inside Optimizer Engine
SQL Server - Inside Optimizer Engine
 
SQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore PlanSQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore Plan
 
SQL Server Security And Encryption
SQL Server Security And EncryptionSQL Server Security And Encryption
SQL Server Security And Encryption
 
SQL Server Index and Partition Strategy
SQL Server Index and Partition StrategySQL Server Index and Partition Strategy
SQL Server Index and Partition Strategy
 
SQL Saturday #438
SQL Saturday #438SQL Saturday #438
SQL Saturday #438
 

Recently uploaded

%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Recently uploaded (20)

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 

Sql server enterprise edition awareness

  • 1. SQL SERVER ENTERPRISE AWARENESS By Hamid J. Fard Microsoft Certified Master: SQL Server 2008 Microsoft Certified Solutions Master: Charter-Data Platform CIW Database Design Specialist Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 2. Agenda • What MattersToYou? • DoYou Believe in High End Hardware? • SQL Server Enterprise Edition (Internal Features) • Advance Scan (Merry-Go-Round) • Fast Recovery • Prefetching • Single Scatter Scan • Automation Matching • Role Reversal • Partitioning • Data Compression • DeferredTransaction • Resource Governor • Vardecimal Storage Formatting • Conclusion Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 3. What MattersToYou? Manageability Performance Storage Space Disaster Recovery Cost Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 4. DoYou Believe in High End Hardware? YES  NO Without High End Software,Your High End Hardware IsWorthless. Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 5. SQL Server Internal Features vs. Editions Feature Enterprise Standard Advance Scan (Merry-Go-Round)   Fast Recovery   Prefetching   Single Scatter Scan   Automation Matching   Role Reversal   Partitioning   Data Compression   DeferredTransaction   Resource Governor   Vardecimal Storage Formatting   Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 6. Advance Scan (Marry-Go-Round) Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. Table A User A User B SQL Server Optimizer Engine Query Buffer Query Buffer Query BufferRead
  • 7. Fast Recovery Analysis Phase Redo Phase Undo Phase Database Recovery Lifecycle Database is Available By Lock-Logging Database is Under Recovery UncommittedTransactions are Roll-Backed Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 8. Prefetching Select E.ID, E.FN, E.LN, D.Designation From Employee E Inner Join Designation D On E.Designation_ID = D.ID Designation Employee Read Synchronously Read Asynchronously Project Resultset Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 9. Single Scatter Scan Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. 465 308 488 489 ListofLeafPages
  • 10. Automation Matching CreateTable dbo.Test (ID Bigint, Batch Char(10), BatchID As Cast(ID As Char) + Batch Persisted) Select ID, Batch From dbo.Test Where Cast ( ID As Char ) + Batch = ‘1045623’ Select ID, Batch From dbo.Test Where BatchID = ‘1045623’ ConvertsTo Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.
  • 11. Role Reversal Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. Build Input Probe Input Hash MatchResultset
  • 12. Partitioning Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. Dbo.Sales 2016-2017 Filegroup 1 Dbo.Sales 2015-2016 Filegroup 2 Dbo.Sales 2014-2015 Filegroup 3 Query Dbo.Sales
  • 13. Data Compression Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. dbo.Sales 1 Billion Rows 186GB Data Size 23,250,000,000,000 Data Pages dbo.Sales 1 Billion Rows 108GB Data Size 1,4557,760,000 Data Pages Data Compression Up to 40%
  • 14. DeferredTransaction Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. In Other Editions, A CorruptedTransaction Causes Database StartupTo Fail Analysis Phase Roll Forward Phase Roll Back Phase Transaction Recovery Lifecycle Transaction Uncommitted Transaction Not Rolled Back Due toCorruptedTransaction Log I/O
  • 15. Resource Governor Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. Memory: 64GB Processor: 8 Logical Processor DB_A Max Memory: 12GB Max Processor: 2 Logical Processors Max IOPS: 500 DB_B Max Memory: 24GB Max Processor: 4 Logical Processors Max IOPS: 2000 AppA App B
  • 16. Vardecimal Storage Formatting Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved. ID Full Name Savings 1 John Smith 50,000 2 BillGates 97,000,000,000 3 KevinWood 500 20 Bytes 20 Bytes 20 Bytes ID Full Name Savings 1 John Smith 50,000 2 BillGates 97,000,000,000 3 KevinWood 500 5 Bytes 20 Bytes 5 Bytes
  • 17. Conclusion If SQL Server Enterprise is Expensive, What About Other Editions! Copyrights © 2016 Fard Solutions Sdn Bhd, All rights reserved.

Editor's Notes

  1. Ask participants what matters to them? Are they willing to have all? Explain as following:- Manageability: That’s great if the DBA can manage every single database within the SQL Server farm from one workstation or apply some policy to avoid some development mistakes. SQL Server enterprise edition provides some features for better and easier manageability of databases such as policy base management, resource governor, management data warehouse, master and slave agents and so on. Performance: Enterprise edition provides high performance due to having some unique internal features which is discussed in the next slides. Storage Space: By using Enterprise edition, you do not need to have huge amount of storage space, you can reduce the storage size by 50%. Disaster Recovery: We are not going to talk about HADR, we are here to talk about database corruption recovery that other editions are not able to support it. Cost: Emm… To gain mentioned benefits, for sure you need to spend some money! Nothing comes free.
  2. Explain audience that why they should not believe in high end hardware. Mention that high end hardware does not change SQL Server behavior towards data and transaction management. So if even the hardware is with high specs, it does not make any changes on the SQL Server behavior. For example: Corrupted I/O can happened in the high back end hardware and it can cause SQL Server database to be suspended.
  3. 1- Advance Scan (Merry Go Round Algorithm): This feature allows multiple tasks to share full table scans. If the execution plan of a Transact-SQL statement requires a scan of the data pages in a table and the Database Engine detects that the table is already being scanned for another execution plan, the Database Engine joins the second scan to the first, at the current location of the second scan. The Database Engine reads each page one time and passes the rows from each page to both execution plans. This continues until the end of the table is reached. Without advanced scanning, each user would have to compete for buffer space and cause disk arm contention. The same pages would then be read once for each user, instead of read one time and shared by multiple users, slowing down performance and taxing resources. 2- Fast Recovery: Fast Recovery allows a database to come online as soon as the REDO phase completes, before UNDO is run. This is made possible by lock logging, which records the locks that were applied by a transaction in the associated log record. 3- Prefetching: The leaf rows of a non-clustered index contain pointers to the data rows that contain each specific key value. As the storage engine reads through the leaf pages of the non-clustered index, it also starts scheduling asynchronous reads for the data rows whose pointers have already been retrieved. 4- Single Scatter Scan: The SQL Server storage engine scans the intermediate index page and builds a list of the leaf pages that must be read. The storage engine then schedules all the reads in key order. It also recognizes that for instance pages 308/465 and 488/489 are contiguous and performs a single scatter read to retrieve the adjacent pages in a single operation. 5- Automatic Matching: The Query Optimizer automatically matches the computed column definition to an existing scalar expression in a query. 6- Role Reversal: In Hash Join, after the build input is hashed, the second table, called the probe input, will be read and compared to the hash table. If rows are matched they will be returned. On the execution plan, the table at the top will be used as the build input, and the table at the bottom as the probe input. If the Query Optimizer is not able to correctly estimate which of the two inputs is smaller, the build and probe roles may be reversed at execution time, and this will not be shown on the execution plan. 7- Partitioning: You can transfer or access subsets of data quickly and efficiently, while maintaining the integrity of a data collection. For example, an operation such as loading data from an OLTP to an OLAP system takes only seconds, instead of the minutes and hours the operation takes when the data is not partitioned. And it improve query performance, based on the types of queries you frequently run and on your hardware configuration. For example, the query optimizer can process equi-join queries between two or more partitioned tables faster when the partitioning columns in the tables are the same, because the partitions themselves can be joined. 8- Data Compression: This feature is to reduce the size of the database. In addition to saving space, data compression can help improve performance of I/O intensive workloads because the data is stored in fewer pages and queries need to read fewer pages from disk. 9- Deferred Transaction: A deferred transaction is a transaction that is uncommitted when the roll forward phase finishes and that has encountered an error that prevents it from being rolled back. Because the transaction cannot be rolled back, it is deferred. In other editions, a corrupted transaction causes database startup to fail. 10- Vardecimal Storage Formatting: This storage format can be enabled at a table-level granularity. When enabled, SQL Server stores decimal and numeric data in the variable portion of the row instead the fixed portion. You can use vardecimal storage format to reduce the size of your database if you have tables with decimal and numeric data types.
  4. 1- Advance Scan (Merry Go Round Algorithm): This feature allows multiple tasks to share full table scans. If the execution plan of a Transact-SQL statement requires a scan of the data pages in a table and the Database Engine detects that the table is already being scanned for another execution plan, the Database Engine joins the second scan to the first, at the current location of the second scan. The Database Engine reads each page one time and passes the rows from each page to both execution plans. This continues until the end of the table is reached. Without advanced scanning, each user would have to compete for buffer space and cause disk arm contention. The same pages would then be read once for each user, instead of read one time and shared by multiple users, slowing down performance and taxing resources.
  5. 2- Fast Recovery: Fast Recovery allows a database to come online as soon as the REDO phase completes, before UNDO is run. This is made possible by lock logging, which records the locks that were applied by a transaction in the associated log record.
  6. 3- Prefetching: The leaf rows of a non-clustered index contain pointers to the data rows that contain each specific key value. As the storage engine reads through the leaf pages of the non-clustered index, it also starts scheduling asynchronous reads for the data rows whose pointers have already been retrieved.
  7. 4- Single Scatter Scan: The SQL Server storage engine scans the intermediate index page and builds a list of the leaf pages that must be read. The storage engine then schedules all the reads in key order. It also recognizes that for instance pages 308/465 and 488/489 are contiguous and performs a single scatter read to retrieve the adjacent pages in a single operation.
  8. 5- Automatic Matching: The Query Optimizer automatically matches the computed column definition to an existing scalar expression in a query.
  9. 6- Role Reversal: In Hash Join, after the build input is hashed, the second table, called the probe input, will be read and compared to the hash table. If rows are matched they will be returned. On the execution plan, the table at the top will be used as the build input, and the table at the bottom as the probe input. If the Query Optimizer is not able to correctly estimate which of the two inputs is smaller, the build and probe roles may be reversed at execution time, and this will not be shown on the execution plan.
  10. 7- Partitioning: You can transfer or access subsets of data quickly and efficiently, while maintaining the integrity of a data collection. For example, an operation such as loading data from an OLTP to an OLAP system takes only seconds, instead of the minutes and hours the operation takes when the data is not partitioned. And it improve query performance, based on the types of queries you frequently run and on your hardware configuration. For example, the query optimizer can process equi-join queries between two or more partitioned tables faster when the partitioning columns in the tables are the same, because the partitions themselves can be joined.
  11. 8- Data Compression: This feature is to reduce the size of the database. In addition to saving space, data compression can help improve performance of I/O intensive workloads because the data is stored in fewer pages and queries need to read fewer pages from disk.
  12. 9- Deferred Transaction: A deferred transaction is a transaction that is uncommitted when the roll forward phase finishes and that has encountered an error that prevents it from being rolled back. Because the transaction cannot be rolled back, it is deferred. In other editions, a corrupted transaction causes database startup to fail.
  13. 10- Vardecimal Storage Formatting: This storage format can be enabled at a table-level granularity. When enabled, SQL Server stores decimal and numeric data in the variable portion of the row instead the fixed portion. You can use vardecimal storage format to reduce the size of your database if you have tables with decimal and numeric data types.