14
SQL Server 2014 Hekaton – In Memory Tables Davide Mauri [email protected]

Hekaton: In-memory tables

Embed Size (px)

DESCRIPTION

Breve overview del nuovo motore in-memory integrato in SQL Server 2014

Citation preview

Page 1: Hekaton: In-memory tables

SQL Server 2014Hekaton – In Memory TablesDavide [email protected]

Page 2: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 2

PILLS SPONSORS

Page 3: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 3

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

Davide Mauri

Page 4: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 4

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

Page 5: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 5

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

Page 6: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 6

Hekaton – In Memory Tables

Page 7: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 7

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

Page 8: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 8

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

Page 9: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 9

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

Page 10: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 10

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

Page 11: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 11

Altri limitiNo 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

Page 12: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 12Hekaton – In Memory Tables

Click icon to add picture

Demo

Page 13: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 13

Nelle prossime puntate…

Indici specifici per Hekaton Range & BW-Trees

Il modello MultiVersion Concurrency Control Lock Free

Hekaton – In Memory Tables

Page 14: Hekaton: In-memory tables

13/04/2023

USER GROUP ITALIANO SQL SERVER 14

Grazie!Trovi altri video su:www.ugiss.org/sql-server-2014-pills