SlideShare a Scribd company logo
bobward@microsoft.com
@bobwardms, #bobsql
https://blogs.msdn.microsoft.com/bobsql
National Institute of Standards and Technology Comprehensive Vulnerability Database update 12/2016.
Everything built-inTPC-H
Oracle
is #5#2
SQL Server
#1
SQL Server
#3
SQL Server
The Power of SQL Server
Everything built-in
June 2016
SQL Server 2016
TPC-E
0 1
4
0 0
3
0
34
29
22
15
5
22
16
6
43
20
69
18
49
74
3
0
10
20
30
40
50
60
70
80
2010 2011 2012 2013 2014 2015 2016
SQL Server Oracle MySQL2 SAP HANA
1/12
Only data solution to
encrypt your data at
rest and in motion
Connect your
relational data to
big data with PolyBase
Real-time operational
analytics without
impacting performance
Up to 30x faster
transactions, 100x faster
queries with InMemory
Unparalleled choice
for developer tools
and languages
1 T-SQL
Java
C/C++
C#/VB.NET
PHP
Node.js
Python
Ruby
For all your applications
Innovations across all editions
Available now
SQL Server 2016 SP1
On the platform of your choice
SQL Server v.Next
Targeting CY2017
SQL Server v.Next GA*
SQL Server v.Next Public Preview available now on Linux, Windows, and Docker.
Faster I/O, Networks, and Dense Core CPUs
Customer Experience, Benchmarks, XEvent, and xperf
Scalability Partitioning Parallelism
More and
Larger
Dynamic
Response
Improved
Algorithms
Columnstore Indexes
SQL Server 2012+
In-Memory OLTP
SQL Server 2014+
Just Runs Faster
Core Engine Scalability
Automatic Soft NUMA
Dynamic Memory Objects
SOS_RWLock
Fair and Balanced Scheduling
Parallel INSERT..SELECT
Parallel Redo
DBCC
DBCC Scalability
DBCC Extended Checks
TempDB
Goodbye Trace Flags
Setup and Automatic Configuration of Files
Optimistic Latching
I/O
Instant File Initialization is No Longer Hidden
Multiple Log Writers
Indirect Checkpoint Default Just Makes Sense
Log I/O at the Speed of Memory
Spatial
Native Implementations
TVP and Index Improvements
Columnstore
Batch Mode and Window Functions
Always On Availability Groups
Turbocharged
Better Compression and Encryption
Sql server 2016 it just runs faster   sql bits 2017 edition
Automatic Soft NUMA
SMP and NUMA machines
SMP machines grew from 8 CPUs to 32 or more and bottlenecks started to arise
Along comes NUMA to partition CPUs and provide local memory access
SQL 2005 was designed with NUMA “built-in”
Most of the original NUMA design had no more than 8 logical CPUs per node
Multi-Core takes hold
Dual core and hyperthreading made it interesting
CPUs on the market now with 24+ cores
Now NUMA nodes are experiencing the same bottleneck behaviors as with SMP
The Answer…. Partition It!
Split up HW NUMA nodes when we detect > 8 physical processors per NUMA node
On by default in 2016 (Change with ALTER SERVER CONFIGURATION)
Code in engine that benefits from NUMA partitioning gets a boost
here
Dynamic Memory Objects
CMEMTHREAD waits causing you problems?
SQL Server allocates variable sized memory using memory objects (aka heaps)
Some are “global”. More cores leads to worse performance
Infrastructure exists to create memory objects partitioned by NODE or CPU
Single NUMA (no NODE) still promotes to CPU. -T8048 no longer need
Every time we find a “hot” one, we create a hotfix
It Just Works!
Sql server 2016 it just runs faster   sql bits 2017 edition
Why go parallel?
Redo has historically been I/O bound
Faster I/O devices means we must utilize more of the CPU
Secondary replicas require continuous redo
Redo is mostly about applying changes to pages
Read the page from disk and apply the logged changes (based on LSN)
Logical operations (file operation) and system transactions need to be applied serially
System Transaction undo required after this before db access
Need a primer in
recovery?
Analysis Redo Undo
PARALLEL REDO
TASK
PARALLEL REDO
TASK
PARALLEL REDO
TASK
Sql server 2016 it just runs faster   sql bits 2017 edition
Sql server 2016 it just runs faster   sql bits 2017 edition
DBCC CHECK* Scalability
Since SQL 2008, we have made CHECK* Faster
Improved latch contention on MULTI_OBJECT_SCANNER* and batch capabilities
Better cardinality estimation
SQL CLR UDT checks
SQL Server 2016 takes it to a new level
MUTLI_OBJECT_SCANNER changed to “CheckScanner”. = “no-lock” approach used
Read-ahead vastly improved
The Results
A “SAP” 1TB db is 7x faster for CHECKDB
The more DOP the better performance (to a point)
2x faster performance with a small database of 5Gb
Sql server 2016 it just runs faster   sql bits 2017 edition
Multiple Tempdb Files: Defaults and Choices
Multiple data files just
make sense
1 per logical processor up to 8. Then add
by four until it doesn’t help
Round-robin spreads access to GAM,
SGAM, and PFS
Remember this is not about I/O
Check out this PASS Summit talk
1 File 8 Files 32 Files 64 Files
1118 On 525 38 15 15
1118 Off 1080 45 17 15
0
200
400
600
800
1000
1200
Seconds
Tempdb Performance
SQL Server 2016 SQL Server 2014
68 secs 155 secs
Sql server 2016 it just runs faster   sql bits 2017 edition
Instant File Initialization
This has been around since 2005
Previously speed to create db is speed to write 0s to disk
Windows introduces SetFileValidData(). Give a length and “your good”
Creating the file for a db almost same speed regardless of size
CREATE DATABASE..Who cares?
You do care about RESTORE and Auto-grow
Is there a catch?
You must have Perform Volume Maintenance Tasks privilege
You can see any bytes in that space previously on disk
Anyone else sees 0s
Can’t use for tlog because we rely on a known byte pattern. Read here
New Installer
Persisted Log Buffer
The evolution of storage
HDD  SSD (ms)
PCI NVMe SSD (μs)
Tired of WRITELOG waits?
Along comes NVDIMM(ns)
Windows Server 2016 supports block storage
(standard I/O path)
A new interface for DirectAccess (DAX) Persistent
Memory
(PM)
Watch these
videos
Channel 9 on
SQL and PMM
NVDIMM on
Win 2016 from
build
Format your NTFS
volume with /dax
on Windows
Server 2016
Create a 2nd tlog
file on this new
volume on SQL
Server 2016 SP1
Tail of the log is
now a “memcpy”
so commit is fast
WRITELOG waits =
0 ms
Now in
SP1! here
Sql server 2016 it just runs faster   sql bits 2017 edition
Batch Mode Fundamentals
Learn Window Functions from Itzik
Sql server 2016 it just runs faster   sql bits 2017 edition
Sql server 2016 it just runs faster   sql bits 2017 edition
A Better Log Transport
The Drivers
Customer experience with perf drops using sync replica
We must scale with faster I/O, Network, and larger CPU systems
In-Memory OLTP needs to be faster
AG drives HADR in Azure SQL Database
Faster DB Seeding speed
95% of “standalone”
speed with
benchmarks for a 1
sync replica
HADR_SYNC_COMMIT
latency at < 1ms with
small to medium
workloads
Reduce Number of Threads for the Round Trip
• 15 worker thread context switches down to 8 (10 with encryption)
Improved Communication Path
• LogWriter can directly submit async network I/O
• Pool of communication workers on hidden schedulers (send and receive)
• Stream log blocks in parallel
Multiple Log Writers on Primary and Secondary
Parallel Log Redo
Reduced Spinlock Contention and Code Efficiencies
Always On Turbocharged
The Results
1 sync HA replica at 95% of standalone speed
• 90% with 2 replicas
With encryption 90% of standalone
• 85% at 2 replicas
Sync Commit latency <= 1ms
The Specs
Haswell Processor 2 socket 18 core (HT 72 CPUs)
384GB RAM
4 x 800Gb SSD (Striped, Log)
4 x 1.8Tb PCI SSD (Data)
Source
Target
Windows Azure
Windows Azure
Tool(s) DMA DMA SSMA
Legacy
Modern
Comparison
Reports
A’
SQL 2008 Instance
Extensive
tracing
Statistical
Analysis
Analyze
Results
B
SQL 2016 Instance
Extensive
tracing
capture prod
workload
SQL
Server
vNext
Adaptive
QP
Automatic
Query Plan
Tuning
Running
faster on
SQL Server
Linux
A faster
Indirect
Checkpoint
• Larger Data File Writes
• Log Stamping Pattern
Column Store uses Vector Instructions
BULK INSERT uses Vector Instructions
On Demand MSDTC Startup
A Faster XEvent Reader
Default database sizes
Very Large memory in Windows Server 2016
TDE using AES-NI
Sort Optimization
Backup compression
SMEP
Query Compilation Gateways
In-Memory OLTP Enhancements
• It Just Runs Faster Blog Posts http://aka.ms/sql2016faster
• SQLCAT Sweet16 Blog Posts
• What’s new in the Database Engine for SQL Server 2016
http://www.slideshare.net
https://groupby.org/2016/11/sql-server-2016-it-just-runs-faster/
bobward@microsoft.com
@bobwardms and
#bobsql
The bobsql blog
Sql server 2016 it just runs faster   sql bits 2017 edition
Multiple Log Writers
slower
Fair and Balanced Scheduling
SOS_RWLock gets a new design
https://blogs.msdn.microsoft.com/bobsql/2016/07/23/how-it-works-reader-
writer-synchronization/
We did it for SELECT..INTO. Why not INSERT..SELECT?
Only for heaps (and CCI)
TABLOCK hint (required for temp tables starting in SP1)
Read here for more restrictions and considerations
Minimally
logged. Bulk
allocation
This is really
parallel page
allocation
There is a DOP
threshold
DBCC CHECK* Extended Checks
disk elevator seek
Indirect Checkpoint
4TB Memory = ~500 million SQL Server BUF structures for older checkpoint
Indirect checkpoint for new database creation dirties ~ 250 BUF structures
Target based on page
I/O telemetry
4TB Memory = ~500 million SQL Server BUF structures for older checkpoint
Indirect checkpoint for new database creation dirties ~ 250 BUF structures
Larger Data Writes
WriteFileGather
here
thin provisioning
data deduplication
Stamping the Log
Goodbye Trace Flags
-T1118 – Force uniform extents
-T1117 – Autogrow all files in FG together
article
Dynamic Worker Pool docs
Spatial is Just Faster
Spatial Data Types Available for Client or T-SQL
Microsoft.SqlServer.Types for client applications (Ex. SQLGeography)
Provided data types in T-SQL (Ex. geography) access the same assembly/native DLL
SQL 2016 changes the path to the “code”
SqlServerSpatial130.dll
SqlServerSpatial###.dll
PInvoke
In one of the tests, average execution times for 3 different
queries were recorded, whereas all three queries were using
STDistance and a spatial index with default grid settings to
identify a set of points closest to a certain location, stressed
across SQL Server 2014 and 2016.
There are no application or database
changes just the SQL Server binary updates
Several major Oil companies…The improved capabilities of
Line String and Spatial query’s has shortened the
monitoring, visualization and machine learning algorithms
cycles allowing them to the same workload in seconds or
minutes that used to take days.
A set of designers, cities and insurance companies leverage
line strings to map and evaluate flood plains.
An environmental protection consortium provides public,
information applications for oil spills, water contamination,
and disaster zones.
A world leader in catastrophe risk modeling experienced a
2000x performance benefit from the combination of the line
string, STIntersects, tessellation and parallelization
improvements.
Spatial index creation is 2x faster in
SQL Server 2016
Special datatypes as TVPs are 15x
faster
Index TVP
Encryption Compression
Encryption
• Goal = 90% of standalone
workload speed
• Scale with parallel communication
threads
• Take advantage of AES-NI
hardware encryption
Compression
• Scale with multiple
communication threads
• Improved compression algorithm
Sql server 2016 it just runs faster   sql bits 2017 edition

More Related Content

What's hot (20)

Gs08 modernize your data platform with sql technologies wash dc
Gs08 modernize your data platform with sql technologies   wash dcGs08 modernize your data platform with sql technologies   wash dc
Gs08 modernize your data platform with sql technologies wash dc
Bob Ward
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and docker
Bob Ward
 
Sql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should knowSql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should know
Bob Ward
 
Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data Platform
Bob Ward
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQLCompressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Arseny Chernov
 
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
ITCamp
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
MSDEVMTL
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
John Martin
 
Relational databases for BigData
Relational databases for BigDataRelational databases for BigData
Relational databases for BigData
Alexander Tokarev
 
Migration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQLMigration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQL
PGConf APAC
 
SQL in the Hybrid World
SQL in the Hybrid WorldSQL in the Hybrid World
SQL in the Hybrid World
Tanel Poder
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Gabriele Bartolini
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
Hostway|HOSTING
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
User Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBUser Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDB
Kai Sasaki
 
TPC-H in MongoDB
TPC-H in MongoDBTPC-H in MongoDB
TPC-H in MongoDB
Aung Thu Rha Hein
 
SQLIO - measuring storage performance
SQLIO - measuring storage performanceSQLIO - measuring storage performance
SQLIO - measuring storage performance
valerian_ceaus
 
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
Trivadis
 
Diving into sql server 2016
Diving into sql server 2016Diving into sql server 2016
Diving into sql server 2016
Mohamed Zaatar - MSc
 
Gs08 modernize your data platform with sql technologies wash dc
Gs08 modernize your data platform with sql technologies   wash dcGs08 modernize your data platform with sql technologies   wash dc
Gs08 modernize your data platform with sql technologies wash dc
Bob Ward
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and docker
Bob Ward
 
Sql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should knowSql server hybrid what every sql professional should know
Sql server hybrid what every sql professional should know
Bob Ward
 
Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data Platform
Bob Ward
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQLCompressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Arseny Chernov
 
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
ITCamp
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
MSDEVMTL
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
John Martin
 
Relational databases for BigData
Relational databases for BigDataRelational databases for BigData
Relational databases for BigData
Alexander Tokarev
 
Migration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQLMigration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQL
PGConf APAC
 
SQL in the Hybrid World
SQL in the Hybrid WorldSQL in the Hybrid World
SQL in the Hybrid World
Tanel Poder
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Gabriele Bartolini
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
Hostway|HOSTING
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
User Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBUser Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDB
Kai Sasaki
 
SQLIO - measuring storage performance
SQLIO - measuring storage performanceSQLIO - measuring storage performance
SQLIO - measuring storage performance
valerian_ceaus
 
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
Trivadis
 

Similar to Sql server 2016 it just runs faster sql bits 2017 edition (20)

Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
Antonios Chatzipavlis
 
SQL Server database engine 2017 enhancements
SQL Server database engine 2017 enhancementsSQL Server database engine 2017 enhancements
SQL Server database engine 2017 enhancements
Gianluca Hotz
 
JSSUG: SQL Sever Performance Tuning
JSSUG: SQL Sever Performance TuningJSSUG: SQL Sever Performance Tuning
JSSUG: SQL Sever Performance Tuning
Kenichiro Nakamura
 
SQL Server 2017 - Mejoras Impulsadas por la Comunidad
SQL Server 2017 - Mejoras Impulsadas por la ComunidadSQL Server 2017 - Mejoras Impulsadas por la Comunidad
SQL Server 2017 - Mejoras Impulsadas por la Comunidad
Javier Villegas
 
Dba tuning
Dba tuningDba tuning
Dba tuning
Maximiliano Accotto
 
Operational foundation for the sql server dba
Operational foundation for the sql server dbaOperational foundation for the sql server dba
Operational foundation for the sql server dba
PeterShore4
 
Microsoft Data Platform - What's included
Microsoft Data Platform - What's includedMicrosoft Data Platform - What's included
Microsoft Data Platform - What's included
James Serra
 
Modernization sql server 2016
Modernization   sql server 2016Modernization   sql server 2016
Modernization sql server 2016
Kiki Noviandi
 
SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4
Gianluca Hotz
 
SQL Server 2016 - Always On.pptx
SQL Server 2016 - Always On.pptxSQL Server 2016 - Always On.pptx
SQL Server 2016 - Always On.pptx
QuyVo27
 
Le novità di sql server 2019
Le novità di sql server 2019Le novità di sql server 2019
Le novità di sql server 2019
Gianluca Hotz
 
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
ITCamp
 
SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2
Gianluca Hotz
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
Joseph D'Antoni
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
James Serra
 
Sql server 2016 Discovery Day
Sql server 2016 Discovery DaySql server 2016 Discovery Day
Sql server 2016 Discovery Day
Thomas Sykes
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
Marcos Freccia
 
SQL Server 2014 for Developers (Cristian Lefter)
SQL Server 2014 for Developers (Cristian Lefter)SQL Server 2014 for Developers (Cristian Lefter)
SQL Server 2014 for Developers (Cristian Lefter)
ITCamp
 
SQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - AdvancedSQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - Advanced
Tony Rogerson
 
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
SQL Server 2014 Extreme Transaction Processing (Hekaton) - BasicsSQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
Tony Rogerson
 
SQL Server database engine 2017 enhancements
SQL Server database engine 2017 enhancementsSQL Server database engine 2017 enhancements
SQL Server database engine 2017 enhancements
Gianluca Hotz
 
JSSUG: SQL Sever Performance Tuning
JSSUG: SQL Sever Performance TuningJSSUG: SQL Sever Performance Tuning
JSSUG: SQL Sever Performance Tuning
Kenichiro Nakamura
 
SQL Server 2017 - Mejoras Impulsadas por la Comunidad
SQL Server 2017 - Mejoras Impulsadas por la ComunidadSQL Server 2017 - Mejoras Impulsadas por la Comunidad
SQL Server 2017 - Mejoras Impulsadas por la Comunidad
Javier Villegas
 
Operational foundation for the sql server dba
Operational foundation for the sql server dbaOperational foundation for the sql server dba
Operational foundation for the sql server dba
PeterShore4
 
Microsoft Data Platform - What's included
Microsoft Data Platform - What's includedMicrosoft Data Platform - What's included
Microsoft Data Platform - What's included
James Serra
 
Modernization sql server 2016
Modernization   sql server 2016Modernization   sql server 2016
Modernization sql server 2016
Kiki Noviandi
 
SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4
Gianluca Hotz
 
SQL Server 2016 - Always On.pptx
SQL Server 2016 - Always On.pptxSQL Server 2016 - Always On.pptx
SQL Server 2016 - Always On.pptx
QuyVo27
 
Le novità di sql server 2019
Le novità di sql server 2019Le novità di sql server 2019
Le novità di sql server 2019
Gianluca Hotz
 
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
ITCamp
 
SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2
Gianluca Hotz
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
Joseph D'Antoni
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
James Serra
 
Sql server 2016 Discovery Day
Sql server 2016 Discovery DaySql server 2016 Discovery Day
Sql server 2016 Discovery Day
Thomas Sykes
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
Marcos Freccia
 
SQL Server 2014 for Developers (Cristian Lefter)
SQL Server 2014 for Developers (Cristian Lefter)SQL Server 2014 for Developers (Cristian Lefter)
SQL Server 2014 for Developers (Cristian Lefter)
ITCamp
 
SQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - AdvancedSQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - Advanced
Tony Rogerson
 
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
SQL Server 2014 Extreme Transaction Processing (Hekaton) - BasicsSQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
Tony Rogerson
 
Ad

Recently uploaded (20)

vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Introduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUEIntroduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUE
Google Developer Group On Campus European Universities in Egypt
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
 
DevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical PodcastDevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical Podcast
Chris Wahl
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
Edge AI and Vision Alliance
 
Jeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software DeveloperJeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software Developer
Jeremy Millul
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowWhat is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
SMACT Works
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf7 Salesforce Data Cloud Best Practices.pdf
7 Salesforce Data Cloud Best Practices.pdf
Minuscule Technologies
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
 
DevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical PodcastDevOps in the Modern Era - Thoughtfully Critical Podcast
DevOps in the Modern Era - Thoughtfully Critical Podcast
Chris Wahl
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
“How Qualcomm Is Powering AI-driven Multimedia at the Edge,” a Presentation f...
Edge AI and Vision Alliance
 
Jeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software DeveloperJeremy Millul - A Talented Software Developer
Jeremy Millul - A Talented Software Developer
Jeremy Millul
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025Developing Schemas with FME and Excel - Peak of Data & AI 2025
Developing Schemas with FME and Excel - Peak of Data & AI 2025
Safe Software
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to KnowWhat is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
What is Oracle EPM A Guide to Oracle EPM Cloud Everything You Need to Know
SMACT Works
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Ad

Sql server 2016 it just runs faster sql bits 2017 edition

  • 2. National Institute of Standards and Technology Comprehensive Vulnerability Database update 12/2016. Everything built-inTPC-H Oracle is #5#2 SQL Server #1 SQL Server #3 SQL Server The Power of SQL Server Everything built-in June 2016 SQL Server 2016 TPC-E 0 1 4 0 0 3 0 34 29 22 15 5 22 16 6 43 20 69 18 49 74 3 0 10 20 30 40 50 60 70 80 2010 2011 2012 2013 2014 2015 2016 SQL Server Oracle MySQL2 SAP HANA 1/12
  • 3. Only data solution to encrypt your data at rest and in motion Connect your relational data to big data with PolyBase Real-time operational analytics without impacting performance Up to 30x faster transactions, 100x faster queries with InMemory Unparalleled choice for developer tools and languages 1 T-SQL Java C/C++ C#/VB.NET PHP Node.js Python Ruby For all your applications Innovations across all editions Available now SQL Server 2016 SP1
  • 4. On the platform of your choice SQL Server v.Next Targeting CY2017 SQL Server v.Next GA* SQL Server v.Next Public Preview available now on Linux, Windows, and Docker.
  • 5. Faster I/O, Networks, and Dense Core CPUs Customer Experience, Benchmarks, XEvent, and xperf Scalability Partitioning Parallelism More and Larger Dynamic Response Improved Algorithms
  • 6. Columnstore Indexes SQL Server 2012+ In-Memory OLTP SQL Server 2014+
  • 7. Just Runs Faster Core Engine Scalability Automatic Soft NUMA Dynamic Memory Objects SOS_RWLock Fair and Balanced Scheduling Parallel INSERT..SELECT Parallel Redo DBCC DBCC Scalability DBCC Extended Checks TempDB Goodbye Trace Flags Setup and Automatic Configuration of Files Optimistic Latching I/O Instant File Initialization is No Longer Hidden Multiple Log Writers Indirect Checkpoint Default Just Makes Sense Log I/O at the Speed of Memory Spatial Native Implementations TVP and Index Improvements Columnstore Batch Mode and Window Functions Always On Availability Groups Turbocharged Better Compression and Encryption
  • 9. Automatic Soft NUMA SMP and NUMA machines SMP machines grew from 8 CPUs to 32 or more and bottlenecks started to arise Along comes NUMA to partition CPUs and provide local memory access SQL 2005 was designed with NUMA “built-in” Most of the original NUMA design had no more than 8 logical CPUs per node Multi-Core takes hold Dual core and hyperthreading made it interesting CPUs on the market now with 24+ cores Now NUMA nodes are experiencing the same bottleneck behaviors as with SMP The Answer…. Partition It! Split up HW NUMA nodes when we detect > 8 physical processors per NUMA node On by default in 2016 (Change with ALTER SERVER CONFIGURATION) Code in engine that benefits from NUMA partitioning gets a boost
  • 10. here
  • 11. Dynamic Memory Objects CMEMTHREAD waits causing you problems? SQL Server allocates variable sized memory using memory objects (aka heaps) Some are “global”. More cores leads to worse performance Infrastructure exists to create memory objects partitioned by NODE or CPU Single NUMA (no NODE) still promotes to CPU. -T8048 no longer need Every time we find a “hot” one, we create a hotfix It Just Works!
  • 13. Why go parallel? Redo has historically been I/O bound Faster I/O devices means we must utilize more of the CPU Secondary replicas require continuous redo Redo is mostly about applying changes to pages Read the page from disk and apply the logged changes (based on LSN) Logical operations (file operation) and system transactions need to be applied serially System Transaction undo required after this before db access Need a primer in recovery? Analysis Redo Undo PARALLEL REDO TASK PARALLEL REDO TASK PARALLEL REDO TASK
  • 16. DBCC CHECK* Scalability Since SQL 2008, we have made CHECK* Faster Improved latch contention on MULTI_OBJECT_SCANNER* and batch capabilities Better cardinality estimation SQL CLR UDT checks SQL Server 2016 takes it to a new level MUTLI_OBJECT_SCANNER changed to “CheckScanner”. = “no-lock” approach used Read-ahead vastly improved The Results A “SAP” 1TB db is 7x faster for CHECKDB The more DOP the better performance (to a point) 2x faster performance with a small database of 5Gb
  • 18. Multiple Tempdb Files: Defaults and Choices Multiple data files just make sense 1 per logical processor up to 8. Then add by four until it doesn’t help Round-robin spreads access to GAM, SGAM, and PFS Remember this is not about I/O Check out this PASS Summit talk
  • 19. 1 File 8 Files 32 Files 64 Files 1118 On 525 38 15 15 1118 Off 1080 45 17 15 0 200 400 600 800 1000 1200 Seconds Tempdb Performance SQL Server 2016 SQL Server 2014 68 secs 155 secs
  • 21. Instant File Initialization This has been around since 2005 Previously speed to create db is speed to write 0s to disk Windows introduces SetFileValidData(). Give a length and “your good” Creating the file for a db almost same speed regardless of size CREATE DATABASE..Who cares? You do care about RESTORE and Auto-grow Is there a catch? You must have Perform Volume Maintenance Tasks privilege You can see any bytes in that space previously on disk Anyone else sees 0s Can’t use for tlog because we rely on a known byte pattern. Read here New Installer
  • 22. Persisted Log Buffer The evolution of storage HDD  SSD (ms) PCI NVMe SSD (μs) Tired of WRITELOG waits? Along comes NVDIMM(ns) Windows Server 2016 supports block storage (standard I/O path) A new interface for DirectAccess (DAX) Persistent Memory (PM) Watch these videos Channel 9 on SQL and PMM NVDIMM on Win 2016 from build Format your NTFS volume with /dax on Windows Server 2016 Create a 2nd tlog file on this new volume on SQL Server 2016 SP1 Tail of the log is now a “memcpy” so commit is fast WRITELOG waits = 0 ms Now in SP1! here
  • 24. Batch Mode Fundamentals Learn Window Functions from Itzik
  • 27. A Better Log Transport The Drivers Customer experience with perf drops using sync replica We must scale with faster I/O, Network, and larger CPU systems In-Memory OLTP needs to be faster AG drives HADR in Azure SQL Database Faster DB Seeding speed 95% of “standalone” speed with benchmarks for a 1 sync replica HADR_SYNC_COMMIT latency at < 1ms with small to medium workloads
  • 28. Reduce Number of Threads for the Round Trip • 15 worker thread context switches down to 8 (10 with encryption) Improved Communication Path • LogWriter can directly submit async network I/O • Pool of communication workers on hidden schedulers (send and receive) • Stream log blocks in parallel Multiple Log Writers on Primary and Secondary Parallel Log Redo Reduced Spinlock Contention and Code Efficiencies
  • 29. Always On Turbocharged The Results 1 sync HA replica at 95% of standalone speed • 90% with 2 replicas With encryption 90% of standalone • 85% at 2 replicas Sync Commit latency <= 1ms The Specs Haswell Processor 2 socket 18 core (HT 72 CPUs) 384GB RAM 4 x 800Gb SSD (Striped, Log) 4 x 1.8Tb PCI SSD (Data)
  • 30. Source Target Windows Azure Windows Azure Tool(s) DMA DMA SSMA Legacy Modern Comparison Reports A’ SQL 2008 Instance Extensive tracing Statistical Analysis Analyze Results B SQL 2016 Instance Extensive tracing capture prod workload
  • 32. • Larger Data File Writes • Log Stamping Pattern Column Store uses Vector Instructions BULK INSERT uses Vector Instructions On Demand MSDTC Startup A Faster XEvent Reader
  • 33. Default database sizes Very Large memory in Windows Server 2016 TDE using AES-NI Sort Optimization Backup compression SMEP Query Compilation Gateways In-Memory OLTP Enhancements
  • 34. • It Just Runs Faster Blog Posts http://aka.ms/sql2016faster • SQLCAT Sweet16 Blog Posts • What’s new in the Database Engine for SQL Server 2016
  • 38. Fair and Balanced Scheduling
  • 39. SOS_RWLock gets a new design https://blogs.msdn.microsoft.com/bobsql/2016/07/23/how-it-works-reader- writer-synchronization/
  • 40. We did it for SELECT..INTO. Why not INSERT..SELECT? Only for heaps (and CCI) TABLOCK hint (required for temp tables starting in SP1) Read here for more restrictions and considerations Minimally logged. Bulk allocation This is really parallel page allocation There is a DOP threshold
  • 42. disk elevator seek Indirect Checkpoint 4TB Memory = ~500 million SQL Server BUF structures for older checkpoint Indirect checkpoint for new database creation dirties ~ 250 BUF structures Target based on page I/O telemetry
  • 43. 4TB Memory = ~500 million SQL Server BUF structures for older checkpoint Indirect checkpoint for new database creation dirties ~ 250 BUF structures
  • 46. Goodbye Trace Flags -T1118 – Force uniform extents -T1117 – Autogrow all files in FG together
  • 49. Spatial is Just Faster Spatial Data Types Available for Client or T-SQL Microsoft.SqlServer.Types for client applications (Ex. SQLGeography) Provided data types in T-SQL (Ex. geography) access the same assembly/native DLL SQL 2016 changes the path to the “code” SqlServerSpatial130.dll SqlServerSpatial###.dll PInvoke
  • 50. In one of the tests, average execution times for 3 different queries were recorded, whereas all three queries were using STDistance and a spatial index with default grid settings to identify a set of points closest to a certain location, stressed across SQL Server 2014 and 2016. There are no application or database changes just the SQL Server binary updates Several major Oil companies…The improved capabilities of Line String and Spatial query’s has shortened the monitoring, visualization and machine learning algorithms cycles allowing them to the same workload in seconds or minutes that used to take days. A set of designers, cities and insurance companies leverage line strings to map and evaluate flood plains. An environmental protection consortium provides public, information applications for oil spills, water contamination, and disaster zones. A world leader in catastrophe risk modeling experienced a 2000x performance benefit from the combination of the line string, STIntersects, tessellation and parallelization improvements.
  • 51. Spatial index creation is 2x faster in SQL Server 2016 Special datatypes as TVPs are 15x faster Index TVP
  • 52. Encryption Compression Encryption • Goal = 90% of standalone workload speed • Scale with parallel communication threads • Take advantage of AES-NI hardware encryption Compression • Scale with multiple communication threads • Improved compression algorithm

Editor's Notes

  • #3: SQL Server is the new industry leader and SQL Server 2016 is packed with value for customers and as with our history, that value is built-in to a single enterprise sku with no additional add-ons. Let’s take a look at the top 5 reasons why you want to bet your business needs on SQL Server. If you are on SQL Server 2005 there is no better time to modernize your apps. If you are on Oracle or IBM, no better time to look again at the value you can gain today at a much lower TCO. Industry leader in mission critical OLTP In case you missed, there is a new leader in Gartner’s core database MQ, where SQL Server for the first time has de-throned Oracle in both execution and vision! Microsoft SQL Server has been the industry leader for two years in a row! Customers are realizing the value that Microsoft is delivering at a rapid pace and in a customer friendly way by building-in innovation verses requiring add-ons. SQL Server also has #1 rankings across a number of TPC-E and TPC-H performance benchmarks Speaking of security and performance, let’s take a look at how we fair against the competition. Most secure database SQL Server continues to be the least vulnerable database 6 years in a row. NIST (National Institute of Standards and Technology) tracks database vulnerabilities and shows SQL as the lowest even though we have more units deployed in production than both Oracle and IBM combined. So what does that mean, if you look at the chart you will see Oracle has many more vulnerabilities, this doesn’t mean that Oracle didn’t address them, but until the vulnerability patch is released and you implement it your data is at risk. Fewer vulnerabilities means fewer patches and your data is less exposed to attack. In addition, SQL Server 2016 delivers layers of protection with capabilities that can protect your data at rest and in motion, even in the memory buffer pool, without impacting database performance, along with the ability to control access and monitor threats. This multi-layered approach combined with proven track record of being least vulnerable provide you with the most secure database on the planet. Highest performing data warehouse From a performance perspective, looking at TPC-H a standard benchmark particularly for Data Warehousing workloads, SQL holds the number #1, #2, and #3 spots for non-clustered scale up performance on multiple hardware platforms including HP, Lenovo and Cisco and for multiple data sizes including 1TB, 3TB and 10TB.  Oracle comes in at #4.  This not only showcases SQL Server performance, but performance at scale for data warehousing. SQL Server 2016 can scale from data marts to the biggest DW workloads.  With SQL Server 2016 enterprise you also get the rights to deploy our scale out MPP (massive parallel processing) data warehousing appliance, so again incredible value out of a single sku. End to end mobile BI on any device Now let’s take a look at end to end mobile BI solution. Many of you may have heard about the Datazen acquisition we made to provide our customer with mobile BI on any device. Well in SQL Server 2016 this will be integrated into Reporting Services, which we are enhancing in a big way. What this means is you can now publish modern reports using PowerBI or Excel 2016 to an iPhone, Android phone, as well as Windows phone. Best of all its built-in so no need to buy a separate product. With the new integration of Power BI and SQL Server you can enable self-service BI in addition to mobility. Even if you choose to enable self-service BI you are doing it at a fraction of the cost of Tableau and Oracle. Even though Tableau has added mobile it’s only iOS and not Android, which is important outside of the US and Tableau is only a point solution for BI, where as SQL Server can tackle all data workloads give you BI and Advanced Analytics built-in. In-database Advanced Analytics Many customers are exploring going beyond BI into predicative analytics where they want to proactively pave their businesses future with data rather than react to data. With SQL Server 2016 you can now accomplish this with built-in in-database advanced analytics. Again the key here is in-database, because when you talk to customers trying to implement advanced analytics the number one challenge is moving the data out of your database to do perform open source R models. In addition, customers want to perform analysis using R models on the latest data which you can do quickly by combining R with SQL Server in-memory technology. With 2016 you can perform R models directly in the database. In addition, customer want to run their R models on the latest data and you can do this quickly with SQL Server 2016 by combining the power of open source R with SQL Server in-memory technology for incredibly fast reads and writes. In-memory across workloads In addition to these top 5 reasons, our optimized in-memory technology is fueling performance across all workloads from our in-memory OLTP that provides up to 30x transactional performance to our in-memory columnstore that give over 100x faster queries for data warehouse and BI workloads. Now with SQL Server 2016, you also have the ability to combine in-memory technologies to give you super-fast reads on top of super-fast writes to enable real-time operational analytics. Consistent Experience from on-premises to cloud In addition to in-memory across all of these workloads, we can also deliver these capabilities with a consistent experience both on-premises and cloud with common development and management tools and common T-SQL. Our goal is to provide you a great experience with data no matter where you choose to implement it!
  • #4: With SQL Server 2016 Service Pack 1, innovative features are now available across editions, so companies can scale across editions with a consistent programming surface area.
  • #5: With SQL Server v.Next, now in public preview, and generally available to purchase targeting mid-calendar year 2017, the power of SQL Server is available on the platform of your choice.
  • #10: Other examples of just faster scaling with auto soft NUMA Dynamic PMO since it can promote first to NODE SQL 2014 SP2 requires trace flag 8079 You can turn this off with ALTER SERVRER but be aware of this bug as documented in https://support.microsoft.com/en-us/kb/3158710 and fixed in SQL 2016 CU1.
  • #11: Using ALTER SERVER for AFFINITY with auto gets interesting. Explain this while looking at ERRORLOG and DMV Using NODE affinity applies to the hardware node configuration. So in the example above if I affinitize on NODE 0, I’ll get soft nodes 0 and 1 to be active. CPUs still work on logical CPU numbers. So if I affinitize on 0 and 1, soft numa is still applied but the only schedulers are 0 and 1 on soft nodes 0 and 1. and soft nodes 2 and 3 are offline
  • #13: Follow the steps in dynamic_pmo\readme.md file
  • #15: Follow the steps in parallel_insert_and_redo\readme.md file
  • #25: 2 min
  • #26: Follow the steps in tempdb\readme.md
  • #38: For testing purposes, can you disable multiple LW with trace flag 9038 at startup. This is undocumented and not supported for production use (except by direction of Microsoft).
  • #44: If you set a target recovery interval > 0 (default for 2016), any manual or internal checkpoint uses indirect checkpoint Indirect checkpoint can be more accurate for redo since we base our calculations on recorded telemetry for i/O from bpool
  • #45: Be aware of Eager Write Leapfrogging