forked from oltpbenchmark/oltpbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.original
66 lines (40 loc) · 2.56 KB
/
README.original
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
60
61
62
63
64
65
66
This is the original README included in this repository. We believe that our
version is "better," but these directions still apply for generating the
TPC-C data.
Instructions for building
-------------------------
Use of JDK 1.5 is recommended, build with "ant jar" from the command line of
the base directory or use your favorite IDE such as Netbeans or Eclipse.
Instructions for running
------------------------
The below scripts all use relative paths, but, they depend on JAVA_HOME
environment varibale being set so that the correct runtime can be found.
JDBC drivers and sample "?.properties" files are included to make it extremely easy for
you to test out the performance of EnterpriseDB, PostgreSQL, MySQL, Oracle, & SQL Svr
in your environment.
1. Go to the 'run/scripts' directory, edit the appropriate "??????.properties" file to
point to the database instance you'd like to test. Of course you'll substitute in
the name of your appropriate config file in the command lines below.
2. Run the "sqlTableCreates" to create the base tables.
- runSQL EnterpriseDB.properties sqlTableCreates
Note: "sqlTableCreates" will truncate all the tables so you can start over clean.
There is also a "sqlTableDrops" script if you need it.
3. Run the "loadData" command file to load all of the default data for a benchmark:
A.) Approximately half a million rows in total will be loaded across 9 tables
per Warehouse. (The default is numWarehouses=1) A decent test size of data
totaling about 1 GB is 10 warehouses as follows:
$ loadData EnterpriseDB.properties numWarehouses=10
B.) Alternatively, you may choose to generate test out to CSV files that can be
bulk loaded as follows:
$ loadData EnterpriseDB.properties numWarehouses=10 fileLocation=c:/temp/
These CSV files can be bulk loaded into EDB-Postgres via the following:
$ runSQL EnterpriseDB.properties sqlTableCopies
You may clean out the data in the tables without dropping them via:
$ runSQL EnterpriseDB.properties sqlTableTruncates
4. Run the "runSQL" command file to execute the SQL script "sqlIndexCreates" to
create the primary keys & other indexes on the tables.
- runSQL EnterpriseDB.properties sqlIndexCreates
5. Run the "runBenchmark" command file to execute the swing GUI application to
test the database. Don't forget to set the number of warehouses equal to the
number you created in step 3
- runBenchmark EnterpriseDB.properties