mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
updating readme with about section
This commit is contained in:
@@ -46,17 +46,18 @@ ALTER DATABASE CURRENT
|
||||
ADD FILEGROUP ' + QUOTENAME(@MODName) + N' CONTAINS MEMORY_OPTIMIZED_DATA;';
|
||||
EXECUTE (@SQL);
|
||||
|
||||
-- add container in the filegroup
|
||||
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
|
||||
BEGIN
|
||||
SET @SQL = N'
|
||||
END;
|
||||
|
||||
-- add container in the filegroup
|
||||
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
|
||||
BEGIN
|
||||
SET @SQL = N'
|
||||
ALTER DATABASE CURRENT
|
||||
ADD FILE (name = N''' + @MODName + ''', filename = '''
|
||||
+ @MemoryOptimizedFilegroupFolder + N''')
|
||||
TO FILEGROUP ' + QUOTENAME(@MODName);
|
||||
EXECUTE (@SQL);
|
||||
END
|
||||
END;
|
||||
EXECUTE (@SQL);
|
||||
END
|
||||
END
|
||||
|
||||
-- 3. set compat level to 130 if it is lower
|
||||
|
||||
@@ -1,7 +1,19 @@
|
||||
# In-Memory OLTP Performance Improvement Sample
|
||||
# In-Memory OLTP Performance Improvement Sample
|
||||
|
||||
This Windows Forms sample application built on .NET Framework 4.6 demonstrates the performance benefits of using SQL Server memory optimized tables and native compiled stored procedures. You can compare the performance before and after enabling In-Memory OLTP by observing the transactions/sec as well as the current CPU Usage and latches/sec.
|
||||
|
||||
|
||||
<a name=about-this-sample></a>
|
||||
|
||||
## About this sample
|
||||
|
||||
<!-- Delete the ones that don't apply -->
|
||||
1. **Applies to:** SQL Server 2014 (or higher), Azure SQL Database
|
||||
1. **Key features:** In-Memory OLTP
|
||||
1. **Workload:** OLTP
|
||||
1. **Programming Language:** T-SQL, C#
|
||||
1. **Authors:** Jos de Bruijn
|
||||
|
||||

|
||||
|
||||
## Running this sample
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-- helper stored procedure to
|
||||
-- helper stored procedure to batch reservations
|
||||
|
||||
CREATE PROCEDURE BatchInsertReservations(@ServerTransactions int, @RowsPerTransaction int, @ThreadID int)
|
||||
AS
|
||||
|
||||
Reference in New Issue
Block a user