Skip to content

Commit c6fc502

Browse files
committed
updating readme with about section
1 parent 17c9d86 commit c6fc502

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateA
1919
*.dll
2020
samples/features/in-memory/ticket-reservations/DemoWorkload/obj/Release/DemoWorkload.FrmConfig.resources
2121
samples/features/in-memory/ticket-reservations/DemoWorkload/bin/Release/DemoWorkload.vshost.exe.config
22-
samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/obj/Debug/PopulateAlwaysEncryptedData.csproj.FileListAbsolute.txt
22+
samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/obj/Debug/PopulateAlwaysEncryptedData.csproj.FileListAbsolute.txt
23+
samples/databases/wide-world-importers/sample-scripts/always-encrypted/PopulateAlwaysEncryptedData/bin/Debug/PopulateAlwaysEncryptedData.vshost.exe.config

samples/features/in-memory/t-sql-scripts/enable-in-memory-oltp.sql

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,18 @@ ALTER DATABASE CURRENT
4646
ADD FILEGROUP ' + QUOTENAME(@MODName) + N' CONTAINS MEMORY_OPTIMIZED_DATA;';
4747
EXECUTE (@SQL);
4848

49-
-- add container in the filegroup
50-
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
51-
BEGIN
52-
SET @SQL = N'
49+
END;
50+
51+
-- add container in the filegroup
52+
IF NOT EXISTS (SELECT * FROM sys.database_files WHERE data_space_id IN (SELECT data_space_id FROM sys.filegroups WHERE type = N'FX'))
53+
BEGIN
54+
SET @SQL = N'
5355
ALTER DATABASE CURRENT
5456
ADD FILE (name = N''' + @MODName + ''', filename = '''
5557
+ @MemoryOptimizedFilegroupFolder + N''')
5658
TO FILEGROUP ' + QUOTENAME(@MODName);
57-
EXECUTE (@SQL);
58-
END
59-
END;
59+
EXECUTE (@SQL);
60+
END
6061
END
6162

6263
-- 3. set compat level to 130 if it is lower

samples/features/in-memory/ticket-reservations/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
# In-Memory OLTP Performance Improvement Sample
1+
# In-Memory OLTP Performance Improvement Sample
22

33
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.
44

5+
6+
<a name=about-this-sample></a>
7+
8+
## About this sample
9+
10+
<!-- Delete the ones that don't apply -->
11+
1. **Applies to:** SQL Server 2014 (or higher), Azure SQL Database
12+
1. **Key features:** In-Memory OLTP
13+
1. **Workload:** OLTP
14+
1. **Programming Language:** T-SQL, C#
15+
1. **Authors:** Jos de Bruijn
16+
517
![Alt text](Screenshots/1.png "Ticket Reservations")
618

719
## Running this sample

samples/features/in-memory/ticket-reservations/TicketReservations/dbo/Stored Procedures/BatchInsertReservations.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- helper stored procedure to
1+
-- helper stored procedure to batch reservations
22

33
CREATE PROCEDURE BatchInsertReservations(@ServerTransactions int, @RowsPerTransaction int, @ThreadID int)
44
AS

0 commit comments

Comments
 (0)