forked from cmu-db/benchbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TPC-C + TPC-H support for SQL Server with tests (cmu-db#147)
Co-authored-by: Brian Kroth <[email protected]>
- Loading branch information
Showing
12 changed files
with
558 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0"?> | ||
<parameters> | ||
|
||
<!-- Connection details --> | ||
<type>sqlserver</type> | ||
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver> | ||
<url>jdbc:sqlserver://localhost:1433;encrypt=false;database=benchbase_tpcc;</url> | ||
<username>benchuser01</username> | ||
<password>P@ssw0rd</password> | ||
<isolation>TRANSACTION_SERIALIZABLE</isolation> | ||
<batchsize>128</batchsize> | ||
|
||
<!-- Scale factor is the number of warehouses in TPCC --> | ||
<scalefactor>1</scalefactor> | ||
|
||
<!-- The workload --> | ||
<terminals>1</terminals> | ||
<works> | ||
<work> | ||
<time>60</time> | ||
<rate>10000</rate> | ||
<weights>45,43,4,4,4</weights> | ||
</work> | ||
</works> | ||
|
||
<!-- TPCC specific --> | ||
<transactiontypes> | ||
<transactiontype> | ||
<name>NewOrder</name> | ||
<!--<preExecutionWait>18000</preExecutionWait>--> | ||
<!--<postExecutionWait>12000</postExecutionWait>--> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Payment</name> | ||
<!--<preExecutionWait>3000</preExecutionWait>--> | ||
<!--<postExecutionWait>12000</postExecutionWait>--> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>OrderStatus</name> | ||
<!--<preExecutionWait>2000</preExecutionWait>--> | ||
<!--<postExecutionWait>10000</postExecutionWait>--> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Delivery</name> | ||
<!--<preExecutionWait>2000</preExecutionWait>--> | ||
<!--<postExecutionWait>5000</postExecutionWait>--> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>StockLevel</name> | ||
<!--<preExecutionWait>2000</preExecutionWait>--> | ||
<!--<postExecutionWait>5000</postExecutionWait>--> | ||
</transactiontype> | ||
</transactiontypes> | ||
</parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0"?> | ||
<parameters> | ||
|
||
<!-- Connection details --> | ||
<type>sqlserver</type> | ||
<driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver> | ||
<url>jdbc:sqlserver://localhost:1433;encrypt=false;database=benchbase_tpch;</url> | ||
<username>benchuser01</username> | ||
<password>P@ssw0rd</password> | ||
<isolation>TRANSACTION_SERIALIZABLE</isolation> | ||
<batchsize>1024</batchsize> | ||
|
||
<scalefactor>0.1</scalefactor> | ||
|
||
<!-- The workload --> | ||
<terminals>1</terminals> | ||
<works> | ||
<work> | ||
<serial>true</serial> | ||
<rate>unlimited</rate> | ||
<weights>1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1</weights> | ||
</work> | ||
<work> | ||
<serial>true</serial> | ||
<rate>unlimited</rate> | ||
<weights>0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1</weights> | ||
</work> | ||
<work> | ||
<serial>true</serial> | ||
<rate>unlimited</rate> | ||
<weights>1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0</weights> | ||
</work> | ||
</works> | ||
|
||
<transactiontypes> | ||
<groupings> | ||
<grouping> | ||
<name>odd</name> | ||
<weights>1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0</weights> | ||
</grouping> | ||
<grouping> | ||
<name>even</name> | ||
<weights>0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1</weights> | ||
</grouping> | ||
</groupings> | ||
<transactiontype> | ||
<name>Q1</name> | ||
<id>1</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q2</name> | ||
<id>2</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q3</name> | ||
<id>3</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q4</name> | ||
<id>4</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q5</name> | ||
<id>5</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q6</name> | ||
<id>6</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q7</name> | ||
<id>7</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q8</name> | ||
<id>8</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q9</name> | ||
<id>9</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q10</name> | ||
<id>10</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q11</name> | ||
<id>11</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q12</name> | ||
<id>12</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q13</name> | ||
<id>13</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q14</name> | ||
<id>14</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q15</name> | ||
<id>15</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q16</name> | ||
<id>16</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q17</name> | ||
<id>17</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q18</name> | ||
<id>18</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q19</name> | ||
<id>19</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q20</name> | ||
<id>20</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q21</name> | ||
<id>21</id> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q22</name> | ||
<id>22</id> | ||
</transactiontype> | ||
</transactiontypes> | ||
</parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.5' | ||
|
||
services: | ||
|
||
sqlserver: | ||
container_name: sqlserver | ||
hostname: sqlserver | ||
image: mcr.microsoft.com/mssql/server:2019-latest | ||
environment: | ||
ACCEPT_EULA: Y | ||
SA_PASSWORD: SApassword1 | ||
ports: | ||
- "1433:1433" | ||
|
||
# No sqlserver web UI provided for now. | ||
# See Also: Azure Data Studio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker compose down --remove-orphans --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker system prune -a -f --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.