SlideShare a Scribd company logo
SQL Server 2014
Hekaton – In Memory Tables
Davide Mauri
dmauri@solidq.com
PILLS SPONSORS
Davide Mauri
18 Years of experience on the SQL Server Platform
Specialized in Data Solution Architecture, Database
Design, Performance Tuning, Business Intelligence
Projects, Consulting, Mentoring & Training
Regular Speaker @ SQL Server events
Microsoft SQL Server MVP
President of UGISS (Italian SQL Server UG)
Mentor @ SolidQ
Hekaton – In Memory Tables
SQL Server 2014 introduce un in-memory engine in SQL
Server
E‟ possibile indicare che una tabella deve essere
ottimizzata per rimanere in memoria
Ottimizzata = Nuove strutture dati, utilizzo di MultiVersion
Concurrency Control per non avere locking
Hekaton – In Memory Tables
Performance estreme!
A parità di hardware si possono ottenere performance di
un ordine di grandezza superiore!
How Fast is Project Codenamed “Hekaton” – It‟s „Wicked
Fast‟!
Da 15.000 tps a 250.000 tps!
Hekaton – In Memory Tables
Hekaton – In Memory Tables
Memory_Optimized = On
Non vengono più utilizzati Extent e Pagine, ma Data Files
e Delta Files
I dati sono memorizzati in un formato nuovo, che usa il
FileStream
Hekaton – In Memory Tables
Durability
E‟ possibile decidere se persistere i dati oppure no
SCHEMA_AND_DATA
SCHEMA_ONLY

Il Transaction Log garantisce le proprietà ACID
Hekaton – In Memory Tables
Tipi di dati supportati
bit
tinyint, smallint, int, bigint
money, smallmoney
float, real
datetime, smalldatetime, datetime2, date, time
numeric and decimal types
Uniqueidentifier
Hekaton – In Memory Tables
Tipi di dati supportati ad esclusione dei LOB
(varxxx(MAX))
char(n), varchar(n), nchar(n), nvarchar(n)
binary(n), varbinary(n)
Hekaton – In Memory Tables
Altri limiti
No DML triggers
No FOREIGN KEY o CHECK constraints
No IDENTITY columns
No UNIQUE indexes (ad esclusione della PRIMARY KEY
)
Massimo 8 indici in totale
Hekaton – In Memory Tables
Hekaton – In Memory Tables
Nelle prossime puntate…
Indici specifici per Hekaton
Range & BW-Trees
Il modello MultiVersion Concurrency Control
Lock Free
Grazie!
Trovi altri video su:
www.ugiss.org/sql-server-2014pills

More Related Content

PPTX
Hekaton: Natively Compiled Stored Procedures
PDF
Datamart.pdf
PPTX
Datamart.pptx
PDF
Power bi Clean and Modelling (SQL Saturday #675)
PPTX
2015.04.23 Azure Community Bootcamp 2015 Keynote Italy
PPTX
SAP Business One 9.0 B1A & B1H overview per Clienti - Luglio 2013
PPTX
Introduzione a Microsoft Azure
PPTX
[ITA] Sql Saturday 355 in Parma - New SQL Server databases under source control
Hekaton: Natively Compiled Stored Procedures
Datamart.pdf
Datamart.pptx
Power bi Clean and Modelling (SQL Saturday #675)
2015.04.23 Azure Community Bootcamp 2015 Keynote Italy
SAP Business One 9.0 B1A & B1H overview per Clienti - Luglio 2013
Introduzione a Microsoft Azure
[ITA] Sql Saturday 355 in Parma - New SQL Server databases under source control

Similar to Hekaton: In-memory tables (20)

DOCX
Gen9 - Domande frequenti
PPTX
[ITA] SQL Saturday 257 - Put databases under source control
PDF
Power bi
PDF
Alfresco Day Roma 2015: TAI
PPT
PRESENTAZIONE ERP "BUSINESS .NET" by Team Memores Computer spa
PDF
Ms sql server 2005 - Upgrading to microsoft sql server 2005 - Scheda corso LEN
PDF
Amministrazione db microsoft sql server 2000 - Scheda corso LEN
PDF
Oracle Business Analytics & Alfa Sistemi
PDF
Ibm storwize v7000 unified disk system
PDF
Costruire una chain of custody del software - una guida per Cto Cio Devops
PDF
Confio Ignite - webinar by Matteo Durighetto
PPTX
Database under source control
PPTX
Quick intro sul Source Control su SQL Server
PDF
Evento PostgreSQL, Milano 6 Marzo 2014
PPTX
Il percorso verso un real-time business
PPTX
Achieving The Efficient Enterprise Developing Virtualization Strategies
PPTX
Windows azure - abbattere tempi e costi di sviluppo
PDF
Azure PaaS databases
PDF
Case Study Microsoft Tacconi
PDF
Microsoft - Caso Di Successo Gruppo Tacconi Spa
Gen9 - Domande frequenti
[ITA] SQL Saturday 257 - Put databases under source control
Power bi
Alfresco Day Roma 2015: TAI
PRESENTAZIONE ERP "BUSINESS .NET" by Team Memores Computer spa
Ms sql server 2005 - Upgrading to microsoft sql server 2005 - Scheda corso LEN
Amministrazione db microsoft sql server 2000 - Scheda corso LEN
Oracle Business Analytics & Alfa Sistemi
Ibm storwize v7000 unified disk system
Costruire una chain of custody del software - una guida per Cto Cio Devops
Confio Ignite - webinar by Matteo Durighetto
Database under source control
Quick intro sul Source Control su SQL Server
Evento PostgreSQL, Milano 6 Marzo 2014
Il percorso verso un real-time business
Achieving The Efficient Enterprise Developing Virtualization Strategies
Windows azure - abbattere tempi e costi di sviluppo
Azure PaaS databases
Case Study Microsoft Tacconi
Microsoft - Caso Di Successo Gruppo Tacconi Spa
Ad

More from Davide Mauri (20)

PPTX
Azure serverless Full-Stack kickstart
PPTX
Agile Data Warehousing
PPTX
Dapper: the microORM that will change your life
PPTX
When indexes are not enough
PPTX
Building a Real-Time IoT monitoring application with Azure
PPTX
SSIS Monitoring Deep Dive
PPTX
Azure SQL & SQL Server 2016 JSON
PPTX
SQL Server & SQL Azure Temporal Tables - V2
PPTX
SQL Server 2016 Temporal Tables
PPTX
SQL Server 2016 What's New For Developers
PPTX
Azure Stream Analytics
PPTX
Azure Machine Learning
PPTX
Dashboarding with Microsoft: Datazen & Power BI
PPTX
Azure ML: from basic to integration with custom applications
PPTX
Event Hub & Azure Stream Analytics
PPTX
SQL Server 2016 JSON
PPTX
SSIS Monitoring Deep Dive
PPTX
Real Time Power BI
PPTX
AzureML - Creating and Using Machine Learning Solutions (Italian)
PPTX
Datarace: IoT e Big Data (Italian)
Azure serverless Full-Stack kickstart
Agile Data Warehousing
Dapper: the microORM that will change your life
When indexes are not enough
Building a Real-Time IoT monitoring application with Azure
SSIS Monitoring Deep Dive
Azure SQL & SQL Server 2016 JSON
SQL Server & SQL Azure Temporal Tables - V2
SQL Server 2016 Temporal Tables
SQL Server 2016 What's New For Developers
Azure Stream Analytics
Azure Machine Learning
Dashboarding with Microsoft: Datazen & Power BI
Azure ML: from basic to integration with custom applications
Event Hub & Azure Stream Analytics
SQL Server 2016 JSON
SSIS Monitoring Deep Dive
Real Time Power BI
AzureML - Creating and Using Machine Learning Solutions (Italian)
Datarace: IoT e Big Data (Italian)
Ad

Hekaton: In-memory tables

  • 1. SQL Server 2014 Hekaton – In Memory Tables Davide Mauri dmauri@solidq.com
  • 3. Davide Mauri 18 Years of experience on the SQL Server Platform Specialized in Data Solution Architecture, Database Design, Performance Tuning, Business Intelligence Projects, Consulting, Mentoring & Training Regular Speaker @ SQL Server events Microsoft SQL Server MVP President of UGISS (Italian SQL Server UG) Mentor @ SolidQ
  • 4. Hekaton – In Memory Tables SQL Server 2014 introduce un in-memory engine in SQL Server E‟ possibile indicare che una tabella deve essere ottimizzata per rimanere in memoria Ottimizzata = Nuove strutture dati, utilizzo di MultiVersion Concurrency Control per non avere locking
  • 5. Hekaton – In Memory Tables Performance estreme! A parità di hardware si possono ottenere performance di un ordine di grandezza superiore! How Fast is Project Codenamed “Hekaton” – It‟s „Wicked Fast‟! Da 15.000 tps a 250.000 tps!
  • 6. Hekaton – In Memory Tables
  • 7. Hekaton – In Memory Tables Memory_Optimized = On Non vengono più utilizzati Extent e Pagine, ma Data Files e Delta Files I dati sono memorizzati in un formato nuovo, che usa il FileStream
  • 8. Hekaton – In Memory Tables Durability E‟ possibile decidere se persistere i dati oppure no SCHEMA_AND_DATA SCHEMA_ONLY Il Transaction Log garantisce le proprietà ACID
  • 9. Hekaton – In Memory Tables Tipi di dati supportati bit tinyint, smallint, int, bigint money, smallmoney float, real datetime, smalldatetime, datetime2, date, time numeric and decimal types Uniqueidentifier
  • 10. Hekaton – In Memory Tables Tipi di dati supportati ad esclusione dei LOB (varxxx(MAX)) char(n), varchar(n), nchar(n), nvarchar(n) binary(n), varbinary(n)
  • 11. Hekaton – In Memory Tables Altri limiti No DML triggers No FOREIGN KEY o CHECK constraints No IDENTITY columns No UNIQUE indexes (ad esclusione della PRIMARY KEY ) Massimo 8 indici in totale
  • 12. Hekaton – In Memory Tables
  • 13. Hekaton – In Memory Tables Nelle prossime puntate… Indici specifici per Hekaton Range & BW-Trees Il modello MultiVersion Concurrency Control Lock Free
  • 14. Grazie! Trovi altri video su: www.ugiss.org/sql-server-2014pills