SQL 2014 In-Memory OLTP What, Why, and How

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

new database engine component fully integrated into SQL Server 2014 optimized for OLTP workloads accessing memory resident data achive improvements.
| Basel SQL Server 2014: In- Memory OLTP Stéphane Haby - Stéphane Savorgnano Consultant dbi services.
Big Data Working with Terabytes in SQL Server Andrew Novick
6 SQL Server Integration Same manageability, administration & development experience Integrated queries & transactions Integrated HA and backup/restore.
Meanwhile RAM cost continues to drop Moore’s Law on total CPU processing power holds but in parallel processing… CPU clock rate stalled… Because.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
Applications hitting a wall today with SQL Server Locking/Latching Scale-up Throughput or latency SLA Applications which do not use SQL Server.
IN-MEMORY OLTP By Manohar Punna SQL Server Geeks – Regional Mentor, Hyderabad Blogger, Speaker.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Srik Raghavan Principal Lead Program Manager Kevin Cox Principal Program Manager SESSION CODE: DAT206.
Meet Kevin Liu Principal Lead Program Manager Kevin Liu has been with Microsoft and the SQL Server engine team for 7 years, working on key projects like.
Ἑ κατόν by Niko Neugebauer. Niko Neugebauer PASS EvangelistPASS Evangelist SQL Server MVPSQL Server MVP SQLPort ( founder & leaderSQLPort.
Moore’s Law means more transistors and therefore cores, but… CPU clock rate stalled… Meanwhile RAM cost continues to drop.
Enterprise Database Administration & Deployment SIG ▪ 313M ▪ Sept 29, 2005 ▪ 10:15 AM SQL Server 2005 Performance Diagnosis and Tuning using SQL Tools.
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
Sofia Event Center November 2013 Margarita Naumova SQL Master Academy.
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
Vedran Kesegić. About me  M.Sc., FER, Zagreb  HRPro d.o.o. Before: Vipnet, FER  13+ years with SQL Server (since SQL 2000)  Microsoft Certified.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
SQL Server 2014: In-Memory OLTP Adoption Considerations Mike
Oracle Announced New In- Memory Database G1 Emre Eftelioglu, Fen Liu [09/27/13] 1 [1]
Session Name Pelin ATICI SQL Premier Field Engineer.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Introducing Hekaton The next step in SQL Server OLTP performance Mladen Prajdić
Use Cases for In-Memory OLTP Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com.
Memory-Optimized Tables Querying at the speed of light.
In-Memory Capabilities
Temporal Databases Microsoft SQL Server 2016
SQL Server In-Memory OLTP: What Every SQL Professional Should Know
Temporal Databases Microsoft SQL Server 2016
In-Memory Optimization (OLTP) enhancements overview
How In-Memory Affects Database Design
Lecture 16: Data Storage Wednesday, November 6, 2006.
UFC #1433 In-Memory tables 2014 vs 2016
What’s New in SQL Server 2016 Master Data Services
7/17/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Taking your application to memory
Introduction to NewSQL
# - it’s not about social media it’s about temporary tables and data
TechEd /6/2018 7:34 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
# - it’s not about social media it’s about temporary tables and data
SQL Server In-Memory Internals
Introduction to SQL Server Management for the Non-DBA
Software Architecture in Practice
Presented by: Warren Sifre
Microsoft Dumps Question Answer - Dumps4download
මොඩියුල විශ්ලේෂණය Buffer Pool Extension භාවිතය.
Super Scaling The LMAX Queue Pattern.
Migrating a Disk-based Table to a Memory-optimized one in SQL Server
The Vocabulary of Performance Tuning
Taking your application to memory
The Vocabulary of Performance Tuning
In-Memory OLTP (IMOLTP) What Can It Do For Me?
Real world In-Memory OLTP
Entity Framework from a database perspective
In Memory OLTP Not Just for OLTP.
Statistics for beginners – In-Memory OLTP
In-Memory OLTP for Database Developers
The Vocabulary of Performance Tuning
In Memory OLTP Not Just for OLTP.
SQL Server 2016 In-Memory OLTP for the DBA
The Vocabulary of Performance Tuning
A Beginners Guide to Transactions
Working with Very Large Tables Like a Pro in SQL Server 2017
Presentation transcript:

SQL 2014 In-Memory OLTP What, Why, and How Andy Vold Thursday June 19, 2014

About me…Andy Vold Architect with RevGen Partners Work primarily in business intelligence, SSIS/ETL, and database development and design. Telemark skier Mountain biker Twitter: @volda2000 Email: avold@revgen.com Feel free to ask questions as we go! Nov-18

In-Memory OLTP: Introduction Announced at SQL PASS 2012 as code-name “Hekaton” New in SQL Server 2014 Is a memory-optimized database engine integrated into the SQL Server engine Can significantly improve OLTP database application performance 64-bit Enterprise, Developer, or Evaluation edition of SQL Server 2014. Tonight we will only scratch the surface. Nov-18

In-Memory OLTP: What Memory-optimized data access. Fully ACID compliant data storage structure, which stores it’s data mainly within the system’s memory Lock and latch free algorithms. Threads that perform transactional work don’t use locks or latches for concurrency control. Native compilation of business logic Natively compiled stored procedures are Transact-SQL stored procedures compiled to native code that access memory-optimized tables. The output of the stored procedure compiler is C code and the compiler leverages Microsoft’s Visual C/C++ compiler to convert the C code into machine code. Memory-optimized tables are backed up as part of regular database backups Tables and sprocs become DLLs on the server. This is totally new. Nov-18

In-Memory OLTP: What Storage for memory-optimized tables has following key attributes: All memory-optimized tables are mapped to a memory-optimized filegroup. This filegroup is built using the filestream filegroup. There are no pages and the data is persisted as a row. All changes to memory-optimized tables are stored by appending to active files. Both reading and writing to files is sequential. This means that there are different versions of the data (versioning) An update is implemented as a delete followed by an insert. The deleted rows are not immediately removed from the storage. The deleted rows are removed by a background process, called MERGE. Unlike disk-based tables, storage for memory-optimized tables is not compressed. When migrating a compressed (ROW or PAGE) disk-based table to memory-optimized table, you will need to account for the change in size. Nov-18

In-Memory OLTP: What There are two durability options for memory-optimized tables: SCHEMA_ONLY (non-durable table) This option ensures durability of the table schema, including indexes When SQL Server is restarted, the non-durable table is recreated, but starts with no data. SCHEMA_AND_DATA (durable table) This option provides durability of both schema and data. The level of data durability depends on whether you commit a transaction as fully durable or with delayed durability. There are two types of memory-optimized indexes: Nonclustered hash indexes, which are made for point lookups. Nonclustered indexes, which are made for range scans and ordered scans. Memory-Optimized Table Variables With memory-optimized table variables, there is no tempdb utilization. Table variables are not stored in tempdb and do not use any resources in tempdb. Durable vs. non-durable is important. Schema vs schema and data…explain. Hash index is built in memory vs. other on disk Nov-18

In-Memory OLTP: Why Implementation Scenario Benefits of In-Memory OLTP High data insertion rate from multiple concurrent connections. Primarily append-only store. Unable to keep up with the insert workload. Eliminate contention. Reduce logging. Read performance and scale with periodic batch inserts and updates. High performance read operations, especially when each server request has multiple read operations to perform. Unable to meet scale-up requirements. Eliminate contention when new data arrives. Lower latency data retrieval. Minimize code execution time. Intensive business logic processing in the database server. Insert, update, and delete workload. Intensive computation inside stored procedures. Read and write contention. Minimize code execution time for reduced latency and improved throughput. Low latency. Require low latency business transactions which typical database solutions cannot achieve. Low latency code execution. Efficient data retrieval. Session state management. Frequent insert, update and point lookups. High scale load from numerous stateless web servers. Optional IO reduction or removal, when using non-durable tables The following table summarizes the workload patterns that may benefit most by using In-Memory OLTP. Really it comes down to “Eliminating contention” which happens due to the Lock and latch free algorithms Nov-18

In-Memory OLTP: How Built in tools The transaction performance collector in SQL Server Management Studio helps you evaluate if In-Memory OLTP will improve your database application’s performance. http://msdn.microsoft.com/en-us/library/dn205133.aspx The transaction performance analysis report also indicates how much work you must do to enable In-Memory OLTP in your application. After you identify a disk-based table to port to In-Memory OLTP, you can use the Memory Optimization Advisor, to help you migrate the table. http://msdn.microsoft.com/en-us/library/dn284308.aspx Nov-18

In-Memory OLTP: How DMVs Introduction of many SQL Server Dynamic Management views are new for In-Memory OLTP (xtp = eXtreme Transaction Processing): sys.dm_db_xtp_checkpoint_stats sys.dm_db_xtp_checkpoint_files sys.dm_db_xtp_gc_cycle_stats sys.dm_db_xtp_hash_index_stats sys.dm_db_xtp_index_stats sys.dm_db_xtp_memory_consumers sys.dm_db_xtp_merge_requests sys.dm_db_xtp_object_stats sys.dm_db_xtp_nonclustered_index_stats sys.dm_db_xtp_table_memory_stats sys.dm_db_xtp_transactions sys.dm_xtp_gc_queue_stats sys.dm_xtp_gc_stats sys.dm_xtp_system_memory_consumers sys.dm_xtp_transaction_stats And others (most all have “xtp” somewhere in the name) Nov-18

In-Memory OLTP: How Nov-18

References MSDN (In-Memory OLTP (In-Memory Optimization)) http://msdn.microsoft.com/en-us/library/dn133186.aspx MSDN (Introduction to Memory-Optimized Tables) http://msdn.microsoft.com/en-us/library/dn133165.aspx TechNet Blog (Architectural Overview of SQL Server 2014’s In-Memory OLTP Technology) http://blogs.technet.com/b/dataplatforminsider/archive/2013/07/22/architectural-overview-of-sql-server-2014-s-in-memory-oltp-technology.aspx Nov-18

Thank You. Andy Vold avold@revgen.com