|
| 1 | +# Sample performance with In-Memory OLTP in WideWorldImporters |
| 2 | + |
| 3 | +This script simulates an insertion workload for vehicle location in the WideWorldImporters sample database. Note that this script is single-threaded. For a multi-threaded variant, see the [vehicle-location-insert](../../workload-drivers/vehicle-location-insert) workload driver. |
| 4 | + |
| 5 | +The main purpose is to compare the performance of data insertion into traditional disk-based tables compared with memory-optimized tables. For a more comprehensive sample demonstrating the performance of In-Memory OLTP see the [in-memory/ticket-reservations](/samples/features/in-memory/ticket-reservations) sample. |
| 6 | + |
| 7 | +### Contents |
| 8 | + |
| 9 | +[About this sample](#about-this-sample)<br/> |
| 10 | +[Before you begin](#before-you-begin)<br/> |
| 11 | +[Running the sample](#run-this-sample)<br/> |
| 12 | +[Sample details](#sample-details)<br/> |
| 13 | +[Disclaimers](#disclaimers)<br/> |
| 14 | +[Related links](#related-links)<br/> |
| 15 | + |
| 16 | + |
| 17 | +<a name=about-this-sample></a> |
| 18 | + |
| 19 | +## About this sample |
| 20 | + |
| 21 | +<!-- Delete the ones that don't apply --> |
| 22 | +1. **Applies to:** SQL Server 2016 (or higher), Azure SQL Database |
| 23 | +1. **Key features:** Core database features |
| 24 | +1. **Workload:** single-threaded insert |
| 25 | +1. **Programming Language:** T-SQL |
| 26 | +1. **Authors:** Greg Low, Jos de Bruijn |
| 27 | +1. **Update history:** 25 May 2016 - initial revision |
| 28 | + |
| 29 | +<a name=before-you-begin></a> |
| 30 | + |
| 31 | +## Before you begin |
| 32 | + |
| 33 | +To run this sample, you need the following prerequisites. |
| 34 | + |
| 35 | +**Software prerequisites:** |
| 36 | + |
| 37 | +<!-- Examples --> |
| 38 | +1. SQL Server 2016 (or higher) or Azure SQL Database. |
| 39 | +2. The WideWorldImporters database. |
| 40 | + |
| 41 | +<a name=run-this-sample></a> |
| 42 | + |
| 43 | +## Running the sample |
| 44 | + |
| 45 | +1. Execute the script in SSMS. |
| 46 | + |
| 47 | +2. Observe the time taken for the inserts in disk-based and memory-optimized tables. |
| 48 | + |
| 49 | +## Sample details |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +<a name=disclaimers></a> |
| 54 | + |
| 55 | +## Disclaimers |
| 56 | +The code included in this sample is not intended to be used for production purposes. |
| 57 | + |
| 58 | +<a name=related-links></a> |
| 59 | + |
| 60 | +## Related Links |
| 61 | +<!-- Links to more articles. Remember to delete "en-us" from the link path. --> |
| 62 | +TBD |
| 63 | + |
0 commit comments