This repository has been archived by the owner. It is now read-only.
forked from angoca/BenchmarkSQL-4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
HOW-TO-RUN.txt
executable file
·60 lines (38 loc) · 1.96 KB
/
HOW-TO-RUN.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Instructions for running
------------------------
Use of JDK7 is required. Sample JDBC Connection Property files are provided as follows:
props.pg : for PostgreSQL/EnterpriseDB
props.ora : for Oracle
props.db2 : for DB2
props.fb : for Firebird
0. (skip for Firebird) As the user postgres, create the benchmarksql user with correct permissions.
postgres=# CREATE USER benchmarksql WITH SUPERUSER PASSWORD 'password';
postgres=# GRANT ALL PRIVILEGES ON DATABASE postgres TO benchmarksql;
1. Go to the 'run' directory, edit the appropriate "props.???"
file to point to the database instance you'd like to test.
2. Run the "sqlTableCreates" to create the base tables.
$ ./runSQL.sh props.?? sqlTableCreates.??
3. Run the Loader command file to load all of the default data
for a benchmark:
A.) Approximately half a million rows (per Warehouse) will be loaded
across 9 tables.
$ ./runLoader.sh props.?? numWarehouses 1
NOTE: You should run the sqlTableTruncates scripts if your tables
are not already empty.
B.) Alternatively, for PostgreSQL you may choose to generate the
load data out to CSV files where it can be efficiently
bulk loaded into the database as many times as required by your
testing.
$ ./runLoader.sh props.?? numWarehouses 1 fileLocation /tmp/csv/
These CSV files can be bulk loaded as follows:
$ ./runSQL.sh props.pg sqlTableCopies
You may truncate the data via:
$ ./runSQL.sh props.?? sqlTableTruncates.??
4. Run the "runSQL" command file to execute the SQL script
"sqlIndexCreates" to create the primary keys & other indexes
on the tables.
$ ./runSQL.sh props.?? sqlIndexCreates.??
5. Run the "runBenchmark" command file to test the database. This command
will create terminals and automatically start the transaction based on
the parameters set in "props".
$ ./runBenchmark.sh props.??