Readme Files edits

This commit is contained in:
Perry Skountrianos
2016-03-25 10:53:00 -07:00
parent 5aa4a06ad2
commit 67e523f61f
4 changed files with 18 additions and 143 deletions
+12
View File
@@ -0,0 +1,12 @@
# SQL Server In-memory
In-Memory OLTP can significantly improve OLTP database application performance. It is a memory-optimized database engine integrated into the SQL Server engine, optimized for OLTP. With In-Memory OLTP you can increase the transaction throughput by up to 30 times, depending on the specifics of the workload. The performance gains come from:
- For memory-optimized tables, the design of their structure is free of the physical limitations of hard drives that force design compromises.
- Core transaction processing is completely free of locks.
- Natively compiled modules execute Transact-SQL statements more efficiently.
Read the following resources for mroe information.
- [In-Memory OLTP (In-Memory Optimization)] (https://msdn.microsoft.com/en-us/library/dn133186.aspx)
- [Quick Start 1: In-Memory OLTP Technologies for Faster Transact-SQL Performance] (https://msdn.microsoft.com/en-us/library/mt694156.aspx)
- [Get started with Columnstore for real time operational analytics] (https://msdn.microsoft.com/en-us/library/dn817827.aspx)
- [Columnstore Indexes Guide] (https://msdn.microsoft.com/en-us/library/gg492088.aspx)
+3 -54
View File
@@ -1,56 +1,5 @@
# Ticket Reservations Sample
# Master Data Services
Ticket Reservations is a Windows Forms sample application built on .NET Framework 4.6 that 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.
Master Data Services (MDS) is the SQL Server solution for master data management. Master data management (MDM) enables you organization to discover and define non-transactional lists of data, and compile maintainable, reliable master lists. This article briefly describe the MDS components and provides links to additional information.
![Alt text](Screenshots/1.png "Ticket Reservations")
## Running this sample
1. Before you can run this sample, you must have the following perquisites:
- SQL Server 2016 CTP3 (or higher)
- Visual Studio 2015 (or higher) with the latest SSDT installed.
2. Clone this repository using Git for Windows (http://www.git-scm.com/), or download the zip file.
3. From Visual Studio, open the **InMemoryOLTPDemo.sln** file from the root directory.
4. In Visual Studio Build menu, select **Build Solution** (or Press F6).
5. In the **App.config** file, located in the project root, find the **TicketReservations** app setting and edit the connectionString if needed. Currently it is configured to connect to the local default SQL Server Instance using Integrated Security.
6. Publish the TicketReservations Database
- Right click on the TicketReservations SQL Server Database Project and Select **Publish**
- Click Edit... to choose your connection string
- Click Publish
- Note: For publishing to Azure SQL you need to change the DB project target platform to **Microsoft Azure SQL Database V12**
7. You can now run and debug the application locally by pressing **F5** in Visual Studio.
8. Start the workload with the **Start** button, and run for a while to show perf profile. Then press stop to stop the workload.
9. In the database project,
- Change TicketReservations.sql to a memory-optimized table (instructions commented in the file itself)
- Change InsertTicketReservations.sql to natively compiled (instructions in the same file)
10. Publish the database project to the same database the tool will take care of making the necessary changes.
Note that, as part of publication, the data is copied from the old disk-based table to the new memory-optimized table, so the longer you run the initial workload, the longer this publication takes.
11. Go back to the app and run the workload again. No need to recompile or restart the application.
The perf gains from In-Memory OLTP as shown by the load generation app depend on two factors:
- Hardware
- more cores => higher perf gain
- slower log IO => lower perf gain
- Configuration settings in the load generator
- more rows per transaction => higher perf gain
- more reads per write => lower perf gain
- default setting is 10 rows per transaction and 1 read per write
With default settings on one machine with 24 logical cores and relatively slow SSD for the log the app shows around performance 40X gain, and in this case the bottleneck was log IO.
## About the code
The code included in this sample is not intended to be a set of best practices on how to build scalable enterprise grade web applications. This is beyond the scope of this quick start sample.
## More information
- [In-Memory OLTP (In-Memory Optimization)] (https://msdn.microsoft.com/en-us/library/dn133186.aspx)
- [OLTP and database management] (https://www.microsoft.com/en-us/server-cloud/solutions/oltp-database-management.aspx)
For information about the new features in SQL Server 2016, see [What's New in Master Data Services (MDS)] (https://msdn.microsoft.com/en-us/library/ff929136.aspx).
+2 -55
View File
@@ -1,56 +1,3 @@
# Ticket Reservations Sample
# R Services
Ticket Reservations is a Windows Forms sample application built on .NET Framework 4.6 that 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.
![Alt text](Screenshots/1.png "Ticket Reservations")
## Running this sample
1. Before you can run this sample, you must have the following perquisites:
- SQL Server 2016 CTP3 (or higher)
- Visual Studio 2015 (or higher) with the latest SSDT installed.
2. Clone this repository using Git for Windows (http://www.git-scm.com/), or download the zip file.
3. From Visual Studio, open the **InMemoryOLTPDemo.sln** file from the root directory.
4. In Visual Studio Build menu, select **Build Solution** (or Press F6).
5. In the **App.config** file, located in the project root, find the **TicketReservations** app setting and edit the connectionString if needed. Currently it is configured to connect to the local default SQL Server Instance using Integrated Security.
6. Publish the TicketReservations Database
- Right click on the TicketReservations SQL Server Database Project and Select **Publish**
- Click Edit... to choose your connection string
- Click Publish
- Note: For publishing to Azure SQL you need to change the DB project target platform to **Microsoft Azure SQL Database V12**
7. You can now run and debug the application locally by pressing **F5** in Visual Studio.
8. Start the workload with the **Start** button, and run for a while to show perf profile. Then press stop to stop the workload.
9. In the database project,
- Change TicketReservations.sql to a memory-optimized table (instructions commented in the file itself)
- Change InsertTicketReservations.sql to natively compiled (instructions in the same file)
10. Publish the database project to the same database the tool will take care of making the necessary changes.
Note that, as part of publication, the data is copied from the old disk-based table to the new memory-optimized table, so the longer you run the initial workload, the longer this publication takes.
11. Go back to the app and run the workload again. No need to recompile or restart the application.
The perf gains from In-Memory OLTP as shown by the load generation app depend on two factors:
- Hardware
- more cores => higher perf gain
- slower log IO => lower perf gain
- Configuration settings in the load generator
- more rows per transaction => higher perf gain
- more reads per write => lower perf gain
- default setting is 10 rows per transaction and 1 read per write
With default settings on one machine with 24 logical cores and relatively slow SSD for the log the app shows around performance 40X gain, and in this case the bottleneck was log IO.
## About the code
The code included in this sample is not intended to be a set of best practices on how to build scalable enterprise grade web applications. This is beyond the scope of this quick start sample.
## More information
- [In-Memory OLTP (In-Memory Optimization)] (https://msdn.microsoft.com/en-us/library/dn133186.aspx)
- [OLTP and database management] (https://www.microsoft.com/en-us/server-cloud/solutions/oltp-database-management.aspx)
[SQL Server 2016 R Services] (http://blogs.microsoft.com/firehose/tag/sql-server-2016-r-services/)