Skip to content

Commit 76f3ea7

Browse files
committed
Update Postgres usage instructions #380
1 parent 07b7706 commit 76f3ea7

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

postgres/README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,40 @@ The default configuration of the database (e.g. database name, user, password) i
6969
scripts/load-in-one-step.sh
7070
```
7171
72-
### Running the benchmark
72+
### Running the benchmark driver
7373
74-
3. To run the scripts of benchmark framework, edit the `driver/{create-validation-parameters,validate,benchmark}.properties` files, then run their script, one of:
74+
Run the benchmark driver in one of the three modes (create validation parameters, validate, benchmark).
75+
76+
#### Create validation parameters
77+
78+
1. Edit the `driver/benchmark.properties` file. Make sure that the `ldbc.snb.interactive.scale_factor`, `ldbc.snb.interactive.updates_dir`, `ldbc.snb.interactive.parameters_dir` properties are set correctly and are in sync.
79+
80+
2. Run the script:
7581

7682
```bash
7783
driver/create-validation-parameters.sh
84+
```
85+
86+
#### Validate
87+
88+
1. Edit the `driver/validate.properties` file. Make sure that the `validate_database` property points to the input CSV file.
89+
90+
2. Run the script:
91+
92+
```bash
7893
driver/validate.sh
94+
```
95+
96+
#### Benchmark
97+
98+
1. Edit the `driver/benchmark.properties` file. Make sure that the `ldbc.snb.interactive.scale_factor`, `ldbc.snb.interactive.updates_dir`, and `ldbc.snb.interactive.parameters_dir` properties are set correctly and are in sync.
99+
100+
2. Run the script:
101+
102+
```bash
79103
driver/benchmark.sh
80104
```
81105

82-
:warning: The default workload contains updates which are persisted in the database. Therefore, **the database needs to be reloaded or restored from backup before each run**. Use the provided `scripts/backup-database.sh` and `scripts/restore-database.sh` scripts to achieve this.
106+
#### Reload between runs
107+
108+
:warning: The default workload contains updates which are persisted in the database. Therefore, **the database needs to be reloaded or restored from backup before each run**. Use the provided `scripts/backup-database.sh` and `scripts/restore-database.sh` scripts to achieve this.

0 commit comments

Comments
 (0)