From c6fc5023d91b92dcdfb3c49a1f97ee731a731f78 Mon Sep 17 00:00:00 2001 From: Jos de Bruijn Date: Mon, 6 Jun 2016 15:29:42 -0700 Subject: [PATCH] updating readme with about section --- .gitignore | 3 ++- .../t-sql-scripts/enable-in-memory-oltp.sql | 15 ++++++++------- .../in-memory/ticket-reservations/README.md | 14 +++++++++++++- .../Stored Procedures/BatchInsertReservations.sql | 2 +- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index fd26bf11..966100e2 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateA *.dll samples/features/in-memory/ticket-reservations/DemoWorkload/obj/Release/DemoWorkload.FrmConfig.resources samples/features/in-memory/ticket-reservations/DemoWorkload/bin/Release/DemoWorkload.vshost.exe.config -samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/obj/Debug/PopulateAlwaysEncryptedData.csproj.FileListAbsolute.txt \ No newline at end of file +samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/obj/Debug/PopulateAlwaysEncryptedData.csproj.FileListAbsolute.txt +samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/bin/Debug/PopulateAlwaysEncryptedData.vshost.exe.config \ No newline at end of file diff --git a/samples/features/in-memory/t-sql-scripts/enable-in-memory-oltp.sql b/samples/features/in-memory/t-sql-scripts/enable-in-memory-oltp.sql index 5f6e0280..7a02bc4c 100644 --- a/samples/features/in-memory/t-sql-scripts/enable-in-memory-oltp.sql +++ b/samples/features/in-memory/t-sql-scripts/enable-in-memory-oltp.sql @@ -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 diff --git a/samples/features/in-memory/ticket-reservations/README.md b/samples/features/in-memory/ticket-reservations/README.md index d3afe497..c71479f7 100644 --- a/samples/features/in-memory/ticket-reservations/README.md +++ b/samples/features/in-memory/ticket-reservations/README.md @@ -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. + + + +## About this sample + + +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 + ![Alt text](Screenshots/1.png "Ticket Reservations") ## Running this sample diff --git a/samples/features/in-memory/ticket-reservations/TicketReservations/dbo/Stored Procedures/BatchInsertReservations.sql b/samples/features/in-memory/ticket-reservations/TicketReservations/dbo/Stored Procedures/BatchInsertReservations.sql index d9e25821..a95bde1b 100644 --- a/samples/features/in-memory/ticket-reservations/TicketReservations/dbo/Stored Procedures/BatchInsertReservations.sql +++ b/samples/features/in-memory/ticket-reservations/TicketReservations/dbo/Stored Procedures/BatchInsertReservations.sql @@ -1,4 +1,4 @@ --- helper stored procedure to +-- helper stored procedure to batch reservations CREATE PROCEDURE BatchInsertReservations(@ServerTransactions int, @RowsPerTransaction int, @ThreadID int) AS