The 5 Hidden Performance Gems

Slides:



Advertisements
Similar presentations
new database engine component fully integrated into SQL Server 2014 optimized for OLTP workloads accessing memory resident data achive improvements.
Advertisements

IDA / ADIT Lecture 10: Database recovery Jose M. Peña
Transactions and Recovery Checkpointing Souhad Daraghma.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Modification is sent by application to SQL Server Modification is sent by application to SQL Server 1 Data pages are located in, or.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Architecture Rajesh. Components of Database Engine.
IN-MEMORY OLTP By Manohar Punna SQL Server Geeks – Regional Mentor, Hyderabad Blogger, Speaker.
Transactions and Locks A Quick Reference and Summary BIT 275.
Maciej Pilecki | Project Botticelli Ltd.. SELECT Bio FROM Speakers WHERE FullName=‘Maciej Pilecki’;  Microsoft Certified Trainer since 2001  SQL Server.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
High Performance Functions SQLBits VI. Going backwards is faster than going forwards.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
Read Dirty to Me: SQL Server Isolation Levels Wendy Pastrick Arrow IT Consulting.
Carlos Bossy Quanta Intelligence SQL Server MCTS, MCITP BI CBIP, Data Mining Real-time Data Warehouse and Reporting Solutions.
SECURING SQL AZURE DATABASE? Boris Hristov SQLSaturday #413 Copenhagen.
Use Cases for In-Memory OLTP Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com.
SQL Server Internals & Architecture Naomi Williams, SQL DBA LinkedIn
Memory-Optimized Tables Querying at the speed of light.
An introduction to Wait Statistics
Inside transaction logging
Execution Planning for Success
Thank You! #sqlsatdnipro Denis
Enforcing the Atomic and Durable Properties
UFC #1433 In-Memory tables 2014 vs 2016
Boris Hristov, SQL Server MVP
Reading execution plans successfully
Please Support Our Sponsors
Chapter Overview Understanding the Database Architecture
Hustle and Bustle of SQL Pages
Reading Execution Plans Successfully
Let Me Finish... Isolating Write Operations
Let Me Finish... Isolating Write Operations
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Working with Very Large Tables Like a Pro in SQL Server 2014
The Vocabulary of Performance Tuning
SQL Server 2017 has more cool features than just running on Linux
The Vocabulary of Performance Tuning
Assignment 4 - Solution Problem 1
SQL Server 2014 Hidden Treasures Denis Reznik Microsoft SQL Server MVP
Hidden Gems of SQL Server 2014
Inside transaction logging
TEMPDB – INTERNALS AND USAGE
SQL SERVER TRANSACTION LOG INSIDE
Transact SQL Performance Tips
Boris Hristov, SQL Server MVP
In Memory OLTP Not Just for OLTP.
Let Me Finish... Isolating Write Operations
The Vocabulary of Performance Tuning
Hidden Gems of SQL Server 2014
Transaction Log Internals and Performance David M Maxwell
Let Me Finish... Isolating Write Operations
Database Recovery 1 Purpose of Database Recovery
Insight into the SQL Server Buffer Cache
Hidden Gems of SQL Server 2014
A Beginners Guide to Transactions
Boris Hristov, SQL Server MVP
A Beginners Guide to Transactions
Hidden Gems of SQL Server 2014
A Beginners Guide to Transactions
A Beginners Guide to Transactions
The Five Mistakes You are Probably Making with SQL Server
Isolation Levels Understanding Transaction Temper Tantrums
The Vocabulary of Performance Tuning
Reading execution plans successfully
A Beginners Guide to Transactions
Module 13: Creating Highly Concurrent SQL Server 2012 Applications
Working with Very Large Tables Like a Pro in SQL Server 2017
Presentation transcript:

The 5 Hidden Performance Gems of SQL Server 2014 Boris Hristov SQL Server MVP, Speaker, Trainer, Blogger and DBA

Gold sponsors 12/9/2018 | Footer Goes Here

Platinum sponsor 12/9/2018 | Footer Goes Here

That’s not a Hekaton Talk!

So who am I? So who am I? @BorisHristov

things that can make your life better 5 things that can make your life better

Here’s how this will go… We’re here time

1 Delayed Durability

A Atomic C Consistent I Isolated D Durable

Transaction’s lifecycle Buffer Cache Modification is recorded in transaction log on disk 3 Data pages are located in, or read into, the buffer cache and then modified 2 Later, checkpoint writes dirty pages to database 4

Here’s the reason why it’s slow

Transaction’s lifecycle Buffer Cache Modification is recorded in transaction log on disk 3 Data pages are located in, or read into, the buffer cache and then modified 2 Wouldn’t it be interesting if… 60 KB buffer -> flush Sp_flush_log Durable transaction – MSDTC or Cross database Later, checkpoint writes dirty pages to database 4

Yes, you can lose data!

DEMO Delayed Durability

2 SELECT INTO

Why don’t we speed up a bit? Prior SQL Server 2014: Serial Execution Plans SQL Server 2014: Parallel Execution Plans

You want that speed, right? Talk with the DBAs to design a proper disk and data layout!

DEMO SELECT INTO

Cardinality Estimator 3 Cardinality Estimator

Why is the CE so important?

The CE has not been changed since SQL Server 7.0 …and at the same time The CE has not been changed since SQL Server 7.0

Where to expect changes? Queries with Multiple Predicates Queries Joining Multiple Tables New Data Not Presented in the Stats Almost everywhere… (this, oh btw, means you have to test a lot!)

Cardinality Estimator DEMO Cardinality Estimator

Inline Index Definitions (remember this one for later) 4 Inline Index Definitions (remember this one for later)

Remember this improvement SQL Server 2012 SQL Server 2014

Inline Index Definitions DEMO Inline Index Definitions

Partitioning Improvements 5 Partitioning Improvements

Why is partitioning both cool and not? Numbers … 8000 Partition 1 … 2500 Partition 2 2501 … 4000 Partition 3 4001 … 8000

Partitioning Improvements DEMO Partitioning Improvements

Temporary Objects Caching +1 Temporary Objects Caching http://www.sqlpassion.at/archive/2013/06/27/improved-temp-table-caching-in-sql-server-2014/

In summary Testing is important! Delayed Durability Parallel SELECT INTO Cardinality Estimator Inline Index Creation Partitioning Improvements Testing is important!

Resources you can use Just a click away!

Thank you! Contacts: brshristov@live.com @BorisHristov www.borishristov.com