Using In-Memory Tables
Using In-Memory Tables
Using In-Memory Tables
Memory-Optimized Tables
• Natively Compiled Stored Procedures
Lesson 1: Memory-Optimized Tables
• Durability
• SCHEMA_AND_DATA
• SCHEMA_ONLY
• Primary Keys
• Must use for SCHEMA_AND_DATA durability
• Specify inline or after columns
• Must specify NONCLUSTERED
Indexes in Memory-Optimized Tables
• Nonclustered indexes
• Use a latch-free BW-tree structure
• Support equality seeks, inequality seeks, and sort order
• Interpreted Transact-SQL
• Enables memory-optimized tables in the same way as
disk-based tables
• Provides an interop layer
• Enables queries that combine memory-optimized and
disk-based tables
• Natively Compiled Stored Procedures
• Increased performance
• Stored procedure converted to C and compiled
• Access to memory-optimized tables only
Demonstration: Using Memory-Optimized
Tables
Logon Information
Virtual machine: 20762C-MIA-SQL
User name: ADVENTUREWORKS\Student
Password: Pa55w.rd
• Review Question(s)