Download presentation
Presentation is loading. Please wait.
1
මොඩියුල විශ්ලේෂණය Buffer Pool Extension භාවිතය.
Columnstore Indexes ක්රියාත්මක කිරීම. In-Memory OLTP කිරීම. Memory Optimized Tables Memory Optimized Stored Procedures
2
Buffer Pool Extension භාවිතය.
Data files (Disk) Buffer cache (RAM) Buffer cache extension (SSD) Pages Clean pages
3
Enabling Buffer Pool Extension
4
columnstore indexes හඳුන්වා දීම.
Row Store Column Store ProductID OrderDate Cost 310 311 312 313 413.14 ProductID 310 311 312 313 314 315 316 317 318 319 320 321 OrderDate … Cost 413.14 333.42 641.22 24.95 64.32 Data page 1000 ProductID OrderDate Cost 314 333.42 315 316 317 641.22 Data page 1001 Data page 2000 Data page 2001 Data page 2002
5
Columnstore Index වර්ග.
Clustered columnstore indexes Nonclustered columnstore indexes
6
Columnstore Indexes
7
In-Memory OLTP…
8
Memory-Optimized Tables
9
Creating Memory-Optimized Tables (1)
memory-optimized data සඳහා filegroup එකක් එකතු කිරීම ALTER DATABASE MyDB ADD FILEGROUP mem_data CONTAINS MEMORY_OPTIMIZED_DATA; GO ADD FILE (NAME = 'MemData' FILENAME = 'D:\Data\MyDB_MemData.ndf') TO FILEGROUP mem_data;
10
Creating Memory-Optimized Tables (2)
CREATE TABLE dbo.MemoryTable (OrderId INTEGER NOT NULL PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = ), OrderDate DATETIME NOT NULL, ProductCode INTEGER NULL, Quantity INTEGER NULL) WITH (MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA);
11
Memory-Optimized Tables Query කිරීම.
Query Interop Native Compilation Native Compilation CREATE PROCEDURE… #define __in HRESULT hkp_(… Transact-SQL SELECT t1.col1, t3.col2 FROM Tab1 t1 JOIN Tab2 t2 ON t1.Col1 = t2.col1; Translate to C Compile to DLL Query Interop Memory-Optimized Tables Disk-Based Tables Tab1 Tab2 Tab3 Tab4
12
Memory-Optimized Tables
13
Natively Compiled Stored Procedures
CREATE PROCEDURE INT WITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNER AS BEGIN ATOMIC WITH (TRANSACTION ISOLATION LEVEL = SNAPSHOT; LANGUAGE = 'us_English') DELETE dbo.OpenOrders WHERE CustomerID DELETE dbo.Customer WHERE CustomerID END;
14
Natively Compiled Stored Procedure
15
In-Memory Objects සම්පිණ්ඩනය Buffer Pool Extension භාවිතය.
Columnstore Indexes ක්රියාත්මක කිරීම. In-Memory OLTP කිරීම. Memory Optimized Tables Memory Optimized Stored Procedures
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.