@@ -32,6 +32,7 @@ Currently Supported Features
32
32
===
33
33
* Experiments are conducted in a Docker container with extended Postgres setup
34
34
* Supported Postgres versions: 9.6, 10
35
+ * Postgres config specified via options, may be partial
35
36
* Supported locations for experimental runs:
36
37
* Any machine with Docker installed
37
38
* AWS EC2:
@@ -98,23 +99,36 @@ nancy run help
98
99
99
100
"Hello World!"
100
101
===
102
+ Locally:
101
103
``` bash
102
- echo " create table hello_world as select i::int4 from generate_series(1, 1000000) _(i);" > ./sample.dump
103
- bzip2 ./sample.dump
104
+ echo " create table hello_world as select i::int4 from generate_series(1, (10^6)::int) _(i);" > ./sample.dump
104
105
105
106
# "Clean run": w/o index
106
107
# (seqscan is expected, total time ~150ms, depending on resources)
107
108
nancy run \
108
109
--run-on localhost \
109
- --workload-custom-sql " select count(1) from hello_world where i between 100000 and 100010;" \
110
- --db-dump-path file://$( pwd) /sample.dump.bz2 --tmp-path /tmp
110
+ --db-dump-path file://$( pwd) /sample.dump.bz2 \
111
+ --tmp-path /tmp \
112
+ --workload-custom-sql " select count(1) from hello_world where i between 100000 and 100010;"
111
113
112
114
# Now check how a regular btree index affects performance
113
115
# (expected total time: ~0.05ms)
114
116
nancy run \
115
117
--run-on localhost \
118
+ --db-dump-path file://$( pwd) /sample.dump.bz2 \
119
+ --tmp-path /tmp \
116
120
--workload-custom-sql " select count(1) from hello_world where i between 100000 and 100010;" \
117
- --db-dump-path file://$( pwd) /sample.dump.bz2 --tmp-path /tmp \
118
121
--target-ddl-do " create index i_hello_world_i on hello_world(i);" \
119
122
--target-ddl-undo " drop index i_hello_world_i;"
120
123
```
124
+
125
+ On AWS EC2:
126
+ ``` bash
127
+ nancy run \
128
+ --run-on aws \
129
+ --aws-ec2-type " i3.large" \
130
+ --aws-keypair-name awskey --aws-ssh-key-path file://$( echo ~ ) /.ssh/awskey.pem \
131
+ --db-dump-path " create table a as select i::int4 from generate_series(1, (10^9)::int) _(i);" \
132
+ --workload-custom-sql " select count(1) from a where i between 10 and 20;"
133
+ ```
134
+
0 commit comments