Sofia Event Center
14-15 May 2014
Boris Hristov SQL Server MVP, Speaker, Trainer, Blogger and DBA
Top 5 T-SQL Improvements in SQL Server 2014
That’s not a Hekaton Talk!
So who am I?
@BorisHristov SQL
5 That’s a talk for….
things that can make your life better
Here’s how this will go…
time
We’re here
1 Delayed Durability
ACID
Atomicity
Isolation
Each and every transaction is…
Consistency
Durability
Transaction’s lifecycle
Data pages are located in, or read into, the buffer cache and then modified
2
Modification is recorded in transaction log on disk 3
Later, checkpoint writes dirty pages to database 4
Buffer Cache
Here’s the reason why it’s slow
Transaction’s lifecycle
Data pages are located in, or read into, the buffer cache and then modified
2
Modification is recorded in transaction log on disk 3
Later, checkpoint writes dirty pages to database 4
Buffer Cache
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
Talk with the DBAs to design a proper disk and data layout!
You want that speed, right?
DEMO SELECT INTO
3 Cardinality Estimator
Why is the CE so important?
…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!)
DEMO Cardinality Estimator
4 Inline Index Definitions
(remember this one for later)
Remember this improvement
SQL Server 2012
SQL Server 2014
DEMO Inline Index Definitions
5 Partitioning Improvements
Numbers
0
…
8000
Par**on 2 2501
…
4000
Par**on 1 0
…
2500
Par**on 3 4001
…
8000
Why is partitioning cool and not cool?
DEMO Partitioning Improvements
+1 Temporary Objects Caching
In summary
Delayed Durability
Parallel SELECT INTO
Cardinality Estimator
Inline Index Creation
Partitioning Improvements
Who said testing is important?
Resources you can use
Just a click away!
Thanks!
Questions? Share your feedback for this particular session
and for the overall conference experience at
http://aka.ms/intouch for a chance to win our prizes!
Top Related