Presentation is loading. Please wait.

Presentation is loading. Please wait.

The 5 Hidden Performance Gems

Similar presentations


Presentation on theme: "The 5 Hidden Performance Gems"— Presentation transcript:

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

2 Gold sponsors 12/9/2018 | Footer Goes Here

3 Platinum sponsor 12/9/2018 | Footer Goes Here

4 That’s not a Hekaton Talk!

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

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

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

8 1 Delayed Durability

9 A Atomic C Consistent I Isolated D Durable

10 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

11 Here’s the reason why it’s slow

12 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

13 Yes, you can lose data!

14 DEMO Delayed Durability

15 2 SELECT INTO

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

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

18 DEMO SELECT INTO

19 Cardinality Estimator
3 Cardinality Estimator

20 Why is the CE so important?

21 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

22 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!)

23 Cardinality Estimator
DEMO Cardinality Estimator

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

25 Remember this improvement
SQL Server 2012 SQL Server 2014

26 Inline Index Definitions
DEMO Inline Index Definitions

27 Partitioning Improvements
5 Partitioning Improvements

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

29 Partitioning Improvements
DEMO Partitioning Improvements

30 Temporary Objects Caching
+1 Temporary Objects Caching

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

32 Resources you can use Just a click away!

33 Thank you! Contacts: brshristov@live.com @BorisHristov


Download ppt "The 5 Hidden Performance Gems"

Similar presentations


Ads by Google