SlideShare a Scribd company logo
İsmail Adar
About.Me()
• Veritabanı Takım Lideri / Doğan Online
• Eğitimen/Danışmanı / Btakademi
• Kitap Yazarı
• Microsoft Certified Trainer
ismailadar@hotmail.com

http://www.ismailadar.com

İsmail
Adar

@ismailadars
Content.GetAgenda()
• Buffer Pool Extension
• Resource Governor for I/O
• Delayed Durability
• DMV- sys.dm_exec_query_profiles
• Select into Parallel
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
Buffer Pool Extension Requirement
• Increasing memory available to SQL Server is the easiest
way of improving OLTP performance.
• However, adding more memory might be expensive or even
unsupported, especially on the old machines with limitations
on DIMM sizes and/or number of supported memory slots.
• Adding new storage devices to the same machines is usually
supported.
Buffer Pool Extension
• Buffer pool is
– The most widely used part of the SQL Server memory
management
– The biggest memory block, most benefits from the memory
increases
– The most critical memory pool for reducing the IO pressure for
OLTP

• SQL Server Buffer Pool Extension can use nonvolatile
storage devices for increasing amount of memory available
for buffer pool consumers. This allows usage of SSD as an
intermediate buffer pool pages thus getting price advantage
How Buffer Pool Extension works
Buffer Pool
Clean Page

Dirty Page

SSD
ɸ

Evict
Clean Page

DB
Buffer Pool Extension Configuration
ALTER SERVER CONFIGURATION
SET BUFFER POOL EXTENSION
{ ON ( FILENAME = 'os_file_path_and_name' ,
SIZE = <size> [ KB | MB | GB ] )
| OFF }
Privilege required: ALTER SERVER STATE
Buffer Pool Extension
Buffer Pool Extension for SSD Disks

Only Clean Pages
Esay Configuration
New DMV

SELECT * FROM sys.dm_os_buffer_pool_extension_configuration
SELECT * FROM sys.dm_os_buffer_descriptors
DEMO
Buffer Pool Extension
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
Why Govern IO?
• Providing IO level isolation between multiple workloads is a
single biggest pain point for customers (especially hosters)
using SQL Server Resource Governor to implement a private
cloud or a Database as a Service
• IO level performance predictability in combination with CPU
and Memory governance (which are shipped already) makes
a comprehensive Resource Governance solution for mission
critical applications running multiple workloads on a single
SQL instance (typically on high-end scale up machines or
large VMs)
Configure Resource Governor for I/O
Ability to set/get/alter Maximum and minimum IOPS per volume to Resource Governor Resource Pools

CREATE/ALTER RESOURCE POOL pool_name
[ WITH

( [ MIN_CPU_PERCENT = value ]
[ [ , ] MAX_CPU_PERCENT = value ]
[ [ , ] CAP_CPU_PERCENT = value ]
[ [ , ] AFFINITY {SCHEDULER = AUTO | (Scheduler_range_spec) | NUMANODE = (NUMA_node_range_spec)}
]
[ [ , ] MIN_MEMORY_PERCENT = value ]
[ [ , ] MAX_MEMORY_PERCENT = value ]
[ [ , ] MIN_IOPS_PER_VOLUME = value ]
[ [ , ] MAX_IOPS_PER_VOLUME = value ])
] [;]
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
Delayed Durability
ACID Rules

Log Buffer

sp_flush_log is executed
The in-memory transaction log buffer fills up.
A fully durable transaction in the same database makes a change
in the database and commits

ALTER DATABASE … SET DELAYED_DURABILITY = { DISABLED |
ALLOWED | FORCED }
DEMO
Delayed Durability
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
DMV- sys.dm_exec_query_profiles
DEMO
DMV- sys.dm_exec_query_profiles
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
DEMO
Select into Parallel
Resources
•

Overview of all In-Memory OLTP posts on the SQL Server blog
–
http://blogs.technet.com/b/dataplatforminsider/archive/2013/10/15/the-411-on-the-microsoft-sql-server-2014-in-memory-oltp-blog-series.aspx

•

SQL 2014 CTP2
–
http://technet.microsoft.com/en-US/evalcenter/dn205290?WT.mc_id=Blog_SQL_InMem_CTP2

•

Getting started with In-Memory OLTP
–
http://blogs.technet.com/b/dataplatforminsider/archive/2013/06/26/getting-started-with-sql-server-2014-in-memory-oltp.aspx

•

In-Memory OLTP Sample, based on AdventureWorks
–
https://msftdbprodsamples.codeplex.com/releases/view/114491?WT.mc_id=Blog_SQL_InMem_CTP2

•

Analysis and Migration tools
–
–

http://technet.microsoft.com/en-us/library/dn284308(v=sql.120).aspx

–

•

http://technet.microsoft.com/en-us/library/dn205133(v=sql.120).aspx

http://technet.microsoft.com/en-us/library/dn358355(v=sql.120).aspx

Transaction isolation with In-Memory OLTP
–

Choosing isolation level: http://msdn.microsoft.com/en-us/library/dn133187(v=sql.120).aspx

–

Implement retry logic: http://msdn.microsoft.com/en-us/library/dn169141(v=sql.120).aspx

•

Books Online documentation for In-Memory OLTP
–
http://technet.microsoft.com/en-us/library/dn133186(v=sql.120).aspx

•

Limitations and workarounds
–

http://msdn.microsoft.com/en-us/library/dn247639(v=sql.120).aspx
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the
U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft
must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related Content

PPTX
Sql Server 2014 In Memory
PPTX
SQL Server 2014 Features
PPTX
Hardware planning & sizing for sql server
PPTX
Keep your environment always on with sql server 2016 sql bits 2017
PDF
Building diagnostic queries using DMVs and DMFs
PDF
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
PPTX
The roadmap for sql server 2019
PPTX
How SQL Server 2016 SP1 Changes the Game
Sql Server 2014 In Memory
SQL Server 2014 Features
Hardware planning & sizing for sql server
Keep your environment always on with sql server 2016 sql bits 2017
Building diagnostic queries using DMVs and DMFs
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
The roadmap for sql server 2019
How SQL Server 2016 SP1 Changes the Game

What's hot (20)

PPTX
SQL 2014 In-Memory OLTP
PPT
PDF
VMworld 2014: Virtualizing Databases
PDF
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
PDF
EDB Postgres DBA Best Practices
 
PDF
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
PPTX
SQL Server Memory Pressure
PDF
SharePoint & SQL Server Working Together Efficiently
PPTX
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
PDF
SQL Azure for ITPros
PPTX
Windows Server 2012 R2 Software-Defined Storage
PDF
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
PPTX
Product Update: EDB Postgres Platform 2017
 
PPTX
X-DB Replication Server and MMR
PDF
Overview of EnterpriseDB Postgres Plus Advanced Server 9.4 and Postgres Enter...
 
PDF
Introducing Postgres Plus Advanced Server 9.4
 
PPTX
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
PPTX
Aceleracion de aplicacione 2
PDF
DbB 10 Webcast #3 The Secrets Of Scalability
PDF
EDB Postgres Replication Server
 
SQL 2014 In-Memory OLTP
VMworld 2014: Virtualizing Databases
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
EDB Postgres DBA Best Practices
 
SQLSaturday#290_Kiev_WindowsAzureDatabaseForBeginners
SQL Server Memory Pressure
SharePoint & SQL Server Working Together Efficiently
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SQL Azure for ITPros
Windows Server 2012 R2 Software-Defined Storage
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
Product Update: EDB Postgres Platform 2017
 
X-DB Replication Server and MMR
Overview of EnterpriseDB Postgres Plus Advanced Server 9.4 and Postgres Enter...
 
Introducing Postgres Plus Advanced Server 9.4
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Aceleracion de aplicacione 2
DbB 10 Webcast #3 The Secrets Of Scalability
EDB Postgres Replication Server
 
Ad

Viewers also liked (7)

PPTX
SQL Server 2014 New Features
PPTX
The 5 Hidden Performance Gems of SQL Server 2014
PDF
Running SQL 2005? It’s time to migrate to SQL 2014!
PDF
Top 5 TSQL Improvements in SQL Server 2014
PDF
Columnstore indexes in sql server 2014
PDF
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
PPT
Microsoft SQL Server - SQL Server Migrations Presentation
SQL Server 2014 New Features
The 5 Hidden Performance Gems of SQL Server 2014
Running SQL 2005? It’s time to migrate to SQL 2014!
Top 5 TSQL Improvements in SQL Server 2014
Columnstore indexes in sql server 2014
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
Microsoft SQL Server - SQL Server Migrations Presentation
Ad

Similar to SQL Server 2014 New Features (Sql Server 2014 Yenilikleri) (20)

PDF
Modernizing your database with SQL Server 2019
PPTX
Investigate SQL Server Memory Like Sherlock Holmes
PPTX
IaaS for DBAs in Azure
PDF
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
PPTX
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
PDF
SQL Server 2014 for Developers (Cristian Lefter)
PPTX
Emc sql server 2012 overview
PPT
SharePoint Topology
PDF
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
PPTX
Performance Demystified for SQL Server on Azure Virtual Machines
PPTX
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
PPT
01 oracle architecture
PDF
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
PDF
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
PPTX
Silk_SQLSaturdayBatonRouge_kgorman_2024.pptx
PDF
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
PDF
Using Snap Clone with Enterprise Manager 12c
PDF
Sql server 2016 Discovery Day
PDF
High availability disaster recovery 101
PPTX
Anthony Somerset - Site Speed = Success!
Modernizing your database with SQL Server 2019
Investigate SQL Server Memory Like Sherlock Holmes
IaaS for DBAs in Azure
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
SQL Server 2014 for Developers (Cristian Lefter)
Emc sql server 2012 overview
SharePoint Topology
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
Performance Demystified for SQL Server on Azure Virtual Machines
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
01 oracle architecture
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Silk_SQLSaturdayBatonRouge_kgorman_2024.pptx
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Using Snap Clone with Enterprise Manager 12c
Sql server 2016 Discovery Day
High availability disaster recovery 101
Anthony Somerset - Site Speed = Success!

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Computing-Curriculum for Schools in Ghana
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Institutional Correction lecture only . . .
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Basic Mud Logging Guide for educational purpose
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
O5-L3 Freight Transport Ops (International) V1.pdf
GDM (1) (1).pptx small presentation for students
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPH.pptx obstetrics and gynecology in nursing
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
TR - Agricultural Crops Production NC III.pdf
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Institutional Correction lecture only . . .
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
STATICS OF THE RIGID BODIES Hibbelers.pdf
01-Introduction-to-Information-Management.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Basic Mud Logging Guide for educational purpose
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)

  • 2. About.Me() • Veritabanı Takım Lideri / Doğan Online • Eğitimen/Danışmanı / Btakademi • Kitap Yazarı • Microsoft Certified Trainer ismailadar@hotmail.com http://www.ismailadar.com İsmail Adar @ismailadars
  • 3. Content.GetAgenda() • Buffer Pool Extension • Resource Governor for I/O • Delayed Durability • DMV- sys.dm_exec_query_profiles • Select into Parallel
  • 5. Buffer Pool Extension Requirement • Increasing memory available to SQL Server is the easiest way of improving OLTP performance. • However, adding more memory might be expensive or even unsupported, especially on the old machines with limitations on DIMM sizes and/or number of supported memory slots. • Adding new storage devices to the same machines is usually supported.
  • 6. Buffer Pool Extension • Buffer pool is – The most widely used part of the SQL Server memory management – The biggest memory block, most benefits from the memory increases – The most critical memory pool for reducing the IO pressure for OLTP • SQL Server Buffer Pool Extension can use nonvolatile storage devices for increasing amount of memory available for buffer pool consumers. This allows usage of SSD as an intermediate buffer pool pages thus getting price advantage
  • 7. How Buffer Pool Extension works Buffer Pool Clean Page Dirty Page SSD ɸ Evict Clean Page DB
  • 8. Buffer Pool Extension Configuration ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION { ON ( FILENAME = 'os_file_path_and_name' , SIZE = <size> [ KB | MB | GB ] ) | OFF } Privilege required: ALTER SERVER STATE
  • 9. Buffer Pool Extension Buffer Pool Extension for SSD Disks Only Clean Pages Esay Configuration New DMV SELECT * FROM sys.dm_os_buffer_pool_extension_configuration SELECT * FROM sys.dm_os_buffer_descriptors
  • 12. Why Govern IO? • Providing IO level isolation between multiple workloads is a single biggest pain point for customers (especially hosters) using SQL Server Resource Governor to implement a private cloud or a Database as a Service • IO level performance predictability in combination with CPU and Memory governance (which are shipped already) makes a comprehensive Resource Governance solution for mission critical applications running multiple workloads on a single SQL instance (typically on high-end scale up machines or large VMs)
  • 13. Configure Resource Governor for I/O Ability to set/get/alter Maximum and minimum IOPS per volume to Resource Governor Resource Pools CREATE/ALTER RESOURCE POOL pool_name [ WITH ( [ MIN_CPU_PERCENT = value ] [ [ , ] MAX_CPU_PERCENT = value ] [ [ , ] CAP_CPU_PERCENT = value ] [ [ , ] AFFINITY {SCHEDULER = AUTO | (Scheduler_range_spec) | NUMANODE = (NUMA_node_range_spec)} ] [ [ , ] MIN_MEMORY_PERCENT = value ] [ [ , ] MAX_MEMORY_PERCENT = value ] [ [ , ] MIN_IOPS_PER_VOLUME = value ] [ [ , ] MAX_IOPS_PER_VOLUME = value ]) ] [;]
  • 15. Delayed Durability ACID Rules Log Buffer sp_flush_log is executed The in-memory transaction log buffer fills up. A fully durable transaction in the same database makes a change in the database and commits ALTER DATABASE … SET DELAYED_DURABILITY = { DISABLED | ALLOWED | FORCED }
  • 22. Resources • Overview of all In-Memory OLTP posts on the SQL Server blog – http://blogs.technet.com/b/dataplatforminsider/archive/2013/10/15/the-411-on-the-microsoft-sql-server-2014-in-memory-oltp-blog-series.aspx • SQL 2014 CTP2 – http://technet.microsoft.com/en-US/evalcenter/dn205290?WT.mc_id=Blog_SQL_InMem_CTP2 • Getting started with In-Memory OLTP – http://blogs.technet.com/b/dataplatforminsider/archive/2013/06/26/getting-started-with-sql-server-2014-in-memory-oltp.aspx • In-Memory OLTP Sample, based on AdventureWorks – https://msftdbprodsamples.codeplex.com/releases/view/114491?WT.mc_id=Blog_SQL_InMem_CTP2 • Analysis and Migration tools – – http://technet.microsoft.com/en-us/library/dn284308(v=sql.120).aspx – • http://technet.microsoft.com/en-us/library/dn205133(v=sql.120).aspx http://technet.microsoft.com/en-us/library/dn358355(v=sql.120).aspx Transaction isolation with In-Memory OLTP – Choosing isolation level: http://msdn.microsoft.com/en-us/library/dn133187(v=sql.120).aspx – Implement retry logic: http://msdn.microsoft.com/en-us/library/dn169141(v=sql.120).aspx • Books Online documentation for In-Memory OLTP – http://technet.microsoft.com/en-us/library/dn133186(v=sql.120).aspx • Limitations and workarounds – http://msdn.microsoft.com/en-us/library/dn247639(v=sql.120).aspx
  • 23. ©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Editor's Notes

  • #4: xxxxx
  • #10: Talking points:The code page of a (var)char value is determined by the collation associated with the value. For example, the collation SQL_Latin1_General_CP1_CI_AS has the associated code page 1252.-- all supported collations for (var)char columns in memory-optimized tables select * from sys.fn_helpcollations() where collationproperty(name, &apos;codepage&apos;) = 1252;Indexes can only be created on string columns if they use a BIN2 collation. The LastName variable uses BIN2 collation. FirstName uses the database default, which is CI_AS (case-insensitive, accent-sensitive).select * from sys.fn_helpcollations() where name like &apos;%BIN2&apos;
  • #16: Talking points:This diagram shows what happens when a table is createdTables are compiled for efficient access to table data – knowledge about indexes, columns, datatypes, etc, is baked into the DLLDLL is loaded immediately after compilationDLL is recompiled at server startup, so no risk of anyone tampering with the DLLs while the server is down