mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update README.md
This commit is contained in:
@@ -18,21 +18,25 @@ Sample order processing workload that can be used for benchmarking transactional
|
||||
1. Create the database, tables, and stored procedures using the T-SQL scripts in the corresponding subfolders.
|
||||
|
||||
- The hash indexes are sized for large databases, processing billions of orders. They are appropriate for 1TB and larger database size. For smaller database and memory size, adjust the bucket counts accordingly.
|
||||
- There are plans to publish scripts for initial populate of the tables. Timeline is TBD.
|
||||
- Scripts are also provided for corresponding disk-based tables and traditional stored procedures, to compare performance between disk-based and memory-optimized tables.
|
||||
|
||||
2. Run the stored procedures using the following mix.
|
||||
|
||||
- There are plans to make a scalable workload driver available as well. Timeline is TBD.
|
||||
|
||||
|Stored Procedure|Weight|Distribution|
|
||||
|----------|--------|-------|
|
||||
|GetOrdersByCustomerID|8|25.8%|
|
||||
|GetProductsByType|6|19.4%|
|
||||
|GetProductsPriceByPK |4 |12.9%|
|
||||
|ProductSelectionCriteria |2 |6.5%|
|
||||
|InsertOrder |10 |32.3%|
|
||||
|FulfillOrders |1 |3.2%|
|
||||
|
||||
|Stored Procedure|Weight|
|
||||
|----------|--------|
|
||||
|GetOrdersByCustomerID|8|
|
||||
|GetProductsByType|6|
|
||||
|GetProductsPriceByPK |4 |
|
||||
|ProductSelectionCriteria |2 |
|
||||
|InsertOrder |10 |
|
||||
|FulfillOrders |1 |
|
||||
|
||||
The recommendation is to use two different drivers:
|
||||
a. Main order processing driver, that is multi-threaded (e.g., 100 or 200 clients), and runs the procedures, GetOrdersByCustomerID, GetProductsByType, GetProductsPriceByPK, ProductSelectionCriteria, and InsertOrder.
|
||||
a. Fulfullment driver, which runs the procedure FulfillOrders. This driver should have a single client to avoid conflicts.
|
||||
|
||||
## Workload description
|
||||
|
||||
|
||||
Reference in New Issue
Block a user