SlideShare a Scribd company logo
www.facebook.com/prpass
SQL Server 2014 In-Memory OLTP
Migration Overview
Jose L. Rivera
PASS Global Spanish VC Leader
MVP | MCTS | MCITP | MCSA
• Microsoft SQL Server MVP
• Líder del Capítulo Global PASS en Español
• VP - Puerto Rico PASS
• Profesional de Bases de Datos con mas de 10 años
usando SQL Server y tecnologías relacionadas
• Especializado en ETL e Inteligencia de Negocios
• Blog: http://sqlconqueror.com
• Email: jose@sqlconqueror.com
/SQLConqueror
 Weekly Meetings
 Different Time Zones
 Spanish speakers from
all over the globe!
/SpanishPASSVC
/user/SpanishPASSVC
/SpanishPASSVC
http://globalspanish.sqlpass.org
Agenda
 In-Memory OLTP Overview
 In-Memory Implementation
 Migration Scenarios
 Q&A
What’s in SQL Server 2014
In-Memory
Technologies
Hybrid
Scenarios
Enhanced
HA/DR
Other
Investments
In-Memory OLTP?
 Memory-optimized OLTP engine
 High performance
 Full integration into SQL Server
 Architected for modern hardware
Hardware Trends
 More complex CPUs
 CPU clock rate stalled
 Parallel processing
 RAM is really cheap!
 SSD: Minimize IO bottleneck
In-Memory OLTP Benefits
Reduce
Contention
Reduce
Logging
Minimize
execution
time
Lower
Latency
Pre-Implementation Requirements
 Enough memory and disk space
 cmpxchg16b instruction support (in most
64bit processors)
 Database should not exceed 250 GB
 At least 2 or 4 sockets and fewer than 60
cores
Limitations
 memory-optimized filegroup cannot be
deleted (Yes! DROP DATABASE)
 No triggers, LOBs, XML, CLR
 No FOREIGN KEY, CHECK
 No schema changes, add/remove index
(drop/recreate only)
Memory optimized Structures
• Tables, Indexes, SPs
Row Format
Row header Payload (table columns)
Begin Ts End Ts StmtId IdxLinkCount
8 bytes 8 bytes 4 bytes 2 + 2 (padding)
bytes
8 bytes * (IdxLinkCount)
Memory-Optimized Tables
90,150 Susan Bogota
50, ∞ Jane Prague
100, 200 John Paris
70, 90 Susan Brussels
200, ∞ John Beijing
Timestamps NameChain ptrs City
Hash index
on City
B
P
Row format
BW-tree
index on
Name
J
S
Memory-Optimized Indexes
90, 150 Susan Bogota
50, ∞ Jane Prague
Timestamps NameChain ptrs City
Hash index
on City
Hash index
on Name
100, 200 John Prague
200, ∞ John Beijing
f(John)
f(Jane)
f(Beijing) f(Bogota)
f(Prague)
Table Creation Process
CREATE TABLE DDL
Code generation and compilation
Table DLL produced
Table DLL loaded
Natively Compiled SPs
 It is ALL in
 All tables must be memory optimized
 CLR like
 Execution plan as a result of the TSQL is compiled
into native code (machine code)
SP Creation Process
CREATE PROC DDL
Query optimization
Code generation and compilation
Procedure DLL produced
Procedure DLL loaded
DEMO
In-Memory OLTP Basics
Workload
Migration Methodology
 Analyze Application
 Know your app
 Define goals
 Identify bottlenecks
 Test, Test, Test
 Examine Gains
In-Memory OLTP Patterns
Implementation Scenario Pattern Characteristics and
Challenge
Main Benefits of In-Memory
OLTP
High Data Insert Rate  Primarily append-only store
 Inability to ingest write workload
 Eliminate contention
 Minimize I/O logging
Read Performance and
Scale
 High performance read operations
 Unable to meet scale-up
requirements
 Eliminate contention
 Efficient data retrieval
 Minimize code execution time
o CPU efficiency for scale
Compute Heavy Data
Processing
 Insert/Update/Delete workload
 Heavy computation inside database
 Read and write contention
 Eliminate contention
 Minimize code execution time
 Efficient data processing
In-Memory OLTP Patterns
Implementation Scenario Pattern Characteristics and
Challenge
Main Benefits of In-Memory
OLTP
Low Latency  Require low latency business
transactions that typical database
solutions cannot achieve
 High concurrency exacerbates
latency
 Eliminate contention
 Minimize code execution time
 Efficient data retrieval
Session State
Management
 Heavy insert, update, and point
lookups
 User scale under load from multiple
stateless web servers
 Eliminate contention
 Efficient data retrieval
 Optional I/O
reduction/removal
Migration Approach
Identify bottlenecks in
tables
Address unsupported
constructs and migrate
data
Perform minimal
changes for
interpreted access
Identify performance
critical transaction
code
Address surface area
limitations and migrate
code
Migration Advisors
 Memory Optimization Advisor
 Identifies which tables in your database will
benefit
 Native Compilation Advisor
 Identifies interpreted stored procedures in your
database that will benefit
DEMO
ARM tool from MDW (Screenshots)
MDW Reports
Transaction Performance Analysis
Table Contention Analysis
MDW reports
DEMO
Migration Advisors
/SQLConqueror

More Related Content

PPTX
The WordPress Way: Accessibility and Backwards Compatibility
PDF
PHP Web Development Frameworks & Advantages
PDF
Embracing DevOps through database migrations with Flyway
PPTX
PDF
The RDBMS You Should Be Using
PPTX
Technology Stack Discussion
PPTX
Make Oracle scream with Flash Storage - Kaminario
PDF
Tech Stack Ideas
The WordPress Way: Accessibility and Backwards Compatibility
PHP Web Development Frameworks & Advantages
Embracing DevOps through database migrations with Flyway
The RDBMS You Should Be Using
Technology Stack Discussion
Make Oracle scream with Flash Storage - Kaminario
Tech Stack Ideas

What's hot (20)

PDF
Drupal 7 performance and optimization
PPT
VFP & Ajax
PDF
Breaking data
PDF
Asp.Net 3 5 Part 1
PDF
PPTX
Product Camp Silicon Valley 2018 - PM Technical Skills
PPTX
How to Supercharge your PHP Web API
PPT
Client server
PDF
Rails on JRuby
PPTX
Oracle Forms to Apex - OGh - 29 September 2009 - Part 1
PPTX
Getting Started, Low Hanging Fruit: Our First Experiences with Oracle Managem...
PPTX
RPI Infor Process Automation Presentation
PDF
Core FP Concepts
PPTX
FlexDeploy Product Technical Overview
PDF
Extending_EBS_12_1_3_with_APEX_5_0_COLLABORATE16
PDF
Migrating Oracle database to Cassandra
PPT
Apex RnD APEX 5 - Printing
PDF
Understanding and Improving Code Generation
PPTX
Functional Programming in PHP
PDF
Exploring plsql new features best practices september 2013
Drupal 7 performance and optimization
VFP & Ajax
Breaking data
Asp.Net 3 5 Part 1
Product Camp Silicon Valley 2018 - PM Technical Skills
How to Supercharge your PHP Web API
Client server
Rails on JRuby
Oracle Forms to Apex - OGh - 29 September 2009 - Part 1
Getting Started, Low Hanging Fruit: Our First Experiences with Oracle Managem...
RPI Infor Process Automation Presentation
Core FP Concepts
FlexDeploy Product Technical Overview
Extending_EBS_12_1_3_with_APEX_5_0_COLLABORATE16
Migrating Oracle database to Cassandra
Apex RnD APEX 5 - Printing
Understanding and Improving Code Generation
Functional Programming in PHP
Exploring plsql new features best practices september 2013
Ad

Viewers also liked (6)

PDF
Mastering SharePoint Migration Planning
PDF
Zensar Technologies Oracle Capabilities
PPTX
Implementation, Change Management and the Application of Healthcare Analytics
PPSX
MS SQL Server 2008, Implementation and Maintenance
PPT
SQL Server Cluster Presentation
PPT
Microsoft SQL Server - SQL Server Migrations Presentation
Mastering SharePoint Migration Planning
Zensar Technologies Oracle Capabilities
Implementation, Change Management and the Application of Healthcare Analytics
MS SQL Server 2008, Implementation and Maintenance
SQL Server Cluster Presentation
Microsoft SQL Server - SQL Server Migrations Presentation
Ad

Similar to SQL Server In-Memory OLTP Migration Overview (20)

PDF
In-memory ColumnStore Index
PPTX
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
PPTX
Sql Server 2014 In Memory
PPTX
SharePoint 2013 Performance Analysis - Robi Vončina
PPT
ow-123123123123123123123123123123123123123
PDF
KoprowskiT_SQLRelay2014#4_Caerdydd_MaintenancePlansForBeginners
PPT
kjdiakdnfdifjadsjkjklljlldasgjdjdljgfldjgldjgldjgl.ppt
PPT
ow.ppt
PDF
SAP ABAP Online Training
PDF
(ATS6-DEV02) Web Application Strategies
PPTX
Sql server operational best practices notes from the field - charley hanan...
DOCX
Datastage Online Training @ Adithya Elearning
PDF
SAP ABAP Online Training
KEY
Standardizing and Managing Your Infrastructure - MOSC 2011
PPTX
Gs08 modernize your data platform with sql technologies wash dc
PPTX
SQL Server It Just Runs Faster
PPT
Plantilla oracle
PPTX
SQL Server Integration Services and Analysis Services
In-memory ColumnStore Index
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Sql Server 2014 In Memory
SharePoint 2013 Performance Analysis - Robi Vončina
ow-123123123123123123123123123123123123123
KoprowskiT_SQLRelay2014#4_Caerdydd_MaintenancePlansForBeginners
kjdiakdnfdifjadsjkjklljlldasgjdjdljgfldjgldjgldjgl.ppt
ow.ppt
SAP ABAP Online Training
(ATS6-DEV02) Web Application Strategies
Sql server operational best practices notes from the field - charley hanan...
Datastage Online Training @ Adithya Elearning
SAP ABAP Online Training
Standardizing and Managing Your Infrastructure - MOSC 2011
Gs08 modernize your data platform with sql technologies wash dc
SQL Server It Just Runs Faster
Plantilla oracle
SQL Server Integration Services and Analysis Services

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
1. Introduction to Computer Programming.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Assigned Numbers - 2025 - Bluetooth® Document
Tartificialntelligence_presentation.pptx
Spectroscopy.pptx food analysis technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
1. Introduction to Computer Programming.pptx

SQL Server In-Memory OLTP Migration Overview

  • 1. www.facebook.com/prpass SQL Server 2014 In-Memory OLTP Migration Overview Jose L. Rivera PASS Global Spanish VC Leader MVP | MCTS | MCITP | MCSA
  • 2. • Microsoft SQL Server MVP • Líder del Capítulo Global PASS en Español • VP - Puerto Rico PASS • Profesional de Bases de Datos con mas de 10 años usando SQL Server y tecnologías relacionadas • Especializado en ETL e Inteligencia de Negocios • Blog: http://sqlconqueror.com • Email: [email protected] /SQLConqueror
  • 3.  Weekly Meetings  Different Time Zones  Spanish speakers from all over the globe! /SpanishPASSVC /user/SpanishPASSVC /SpanishPASSVC http://globalspanish.sqlpass.org
  • 4. Agenda  In-Memory OLTP Overview  In-Memory Implementation  Migration Scenarios  Q&A
  • 5. What’s in SQL Server 2014 In-Memory Technologies Hybrid Scenarios Enhanced HA/DR Other Investments
  • 6. In-Memory OLTP?  Memory-optimized OLTP engine  High performance  Full integration into SQL Server  Architected for modern hardware
  • 7. Hardware Trends  More complex CPUs  CPU clock rate stalled  Parallel processing  RAM is really cheap!  SSD: Minimize IO bottleneck
  • 9. Pre-Implementation Requirements  Enough memory and disk space  cmpxchg16b instruction support (in most 64bit processors)  Database should not exceed 250 GB  At least 2 or 4 sockets and fewer than 60 cores
  • 10. Limitations  memory-optimized filegroup cannot be deleted (Yes! DROP DATABASE)  No triggers, LOBs, XML, CLR  No FOREIGN KEY, CHECK  No schema changes, add/remove index (drop/recreate only)
  • 11. Memory optimized Structures • Tables, Indexes, SPs
  • 12. Row Format Row header Payload (table columns) Begin Ts End Ts StmtId IdxLinkCount 8 bytes 8 bytes 4 bytes 2 + 2 (padding) bytes 8 bytes * (IdxLinkCount)
  • 13. Memory-Optimized Tables 90,150 Susan Bogota 50, ∞ Jane Prague 100, 200 John Paris 70, 90 Susan Brussels 200, ∞ John Beijing Timestamps NameChain ptrs City Hash index on City B P Row format BW-tree index on Name J S
  • 14. Memory-Optimized Indexes 90, 150 Susan Bogota 50, ∞ Jane Prague Timestamps NameChain ptrs City Hash index on City Hash index on Name 100, 200 John Prague 200, ∞ John Beijing f(John) f(Jane) f(Beijing) f(Bogota) f(Prague)
  • 15. Table Creation Process CREATE TABLE DDL Code generation and compilation Table DLL produced Table DLL loaded
  • 16. Natively Compiled SPs  It is ALL in  All tables must be memory optimized  CLR like  Execution plan as a result of the TSQL is compiled into native code (machine code)
  • 17. SP Creation Process CREATE PROC DDL Query optimization Code generation and compilation Procedure DLL produced Procedure DLL loaded
  • 19. Migration Methodology  Analyze Application  Know your app  Define goals  Identify bottlenecks  Test, Test, Test  Examine Gains
  • 20. In-Memory OLTP Patterns Implementation Scenario Pattern Characteristics and Challenge Main Benefits of In-Memory OLTP High Data Insert Rate  Primarily append-only store  Inability to ingest write workload  Eliminate contention  Minimize I/O logging Read Performance and Scale  High performance read operations  Unable to meet scale-up requirements  Eliminate contention  Efficient data retrieval  Minimize code execution time o CPU efficiency for scale Compute Heavy Data Processing  Insert/Update/Delete workload  Heavy computation inside database  Read and write contention  Eliminate contention  Minimize code execution time  Efficient data processing
  • 21. In-Memory OLTP Patterns Implementation Scenario Pattern Characteristics and Challenge Main Benefits of In-Memory OLTP Low Latency  Require low latency business transactions that typical database solutions cannot achieve  High concurrency exacerbates latency  Eliminate contention  Minimize code execution time  Efficient data retrieval Session State Management  Heavy insert, update, and point lookups  User scale under load from multiple stateless web servers  Eliminate contention  Efficient data retrieval  Optional I/O reduction/removal
  • 22. Migration Approach Identify bottlenecks in tables Address unsupported constructs and migrate data Perform minimal changes for interpreted access Identify performance critical transaction code Address surface area limitations and migrate code
  • 23. Migration Advisors  Memory Optimization Advisor  Identifies which tables in your database will benefit  Native Compilation Advisor  Identifies interpreted stored procedures in your database that will benefit
  • 24. DEMO ARM tool from MDW (Screenshots)