Merge lp:~kalebral-deactivatedaccount/drizzle-automation/rename-db-tables into lp:drizzle-automation
- rename-db-tables
- Merge into trunk
Proposed by
Lee Bieber
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~kalebral-deactivatedaccount/drizzle-automation/rename-db-tables |
Merge into: | lp:drizzle-automation |
Diff against target: |
307 lines (+78/-41) 6 files modified
drizzle/automation/lib/db.py (+39/-2) drizzle/automation/lib/util.py (+7/-7) drizzle/automation/reports/dbt2.py (+8/-8) drizzle/automation/reports/drizzleslap.py (+8/-8) drizzle/automation/reports/sqlbench.py (+8/-8) drizzle/automation/reports/sysbench.py (+8/-8) |
To merge this branch: | bzr merge lp:~kalebral-deactivatedaccount/drizzle-automation/rename-db-tables |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes | Approve | ||
Review via email: mp+17865@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Lee Bieber (kalebral-deactivatedaccount) wrote : | # |
Revision history for this message
Jay Pipes (jaypipes) wrote : | # |
Nice! I've been wanting to do this for a while now. :)
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'drizzle/automation/lib/db.py' | |||
2 | --- drizzle/automation/lib/db.py 2009-06-21 07:25:45 +0000 | |||
3 | +++ drizzle/automation/lib/db.py 2010-01-22 04:01:12 +0000 | |||
4 | @@ -147,12 +147,12 @@ | |||
5 | 147 | , PRIMARY KEY (server, version, run_date, dir_name) | 147 | , PRIMARY KEY (server, version, run_date, dir_name) |
6 | 148 | ) ENGINE=InnoDB; | 148 | ) ENGINE=InnoDB; |
7 | 149 | 149 | ||
9 | 150 | CREATE TABLE sysbench_config ( | 150 | CREATE TABLE bench_config ( |
10 | 151 | config_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY | 151 | config_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY |
11 | 152 | , name VARCHAR(255) NOT NULL | 152 | , name VARCHAR(255) NOT NULL |
12 | 153 | ) ENGINE=InnoDB; | 153 | ) ENGINE=InnoDB; |
13 | 154 | 154 | ||
15 | 155 | CREATE TABLE sysbench_runs ( | 155 | CREATE TABLE bench_runs ( |
16 | 156 | run_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY | 156 | run_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY |
17 | 157 | , config_id INT NOT NULL | 157 | , config_id INT NOT NULL |
18 | 158 | , server VARCHAR(20) NOT NULL | 158 | , server VARCHAR(20) NOT NULL |
19 | @@ -182,5 +182,42 @@ | |||
20 | 182 | , PRIMARY KEY (run_id, concurrency) | 182 | , PRIMARY KEY (run_id, concurrency) |
21 | 183 | ) ENGINE=InnoDB; | 183 | ) ENGINE=InnoDB; |
22 | 184 | 184 | ||
23 | 185 | CREATE TABLE sqlbench_run_iterations ( | ||
24 | 186 | run_id INT NOT NULL | ||
25 | 187 | , operation_name VARCHAR(40) NOT NULL | ||
26 | 188 | , seconds DECIMAL(5,2) NOT NULL | ||
27 | 189 | , usr DECIMAL(5,2) NOT NULL | ||
28 | 190 | , sys DECIMAL(5,2) NOT NULL | ||
29 | 191 | , cpu DECIMAL(5,2) NOT NULL | ||
30 | 192 | , tests INT NOT NULL | ||
31 | 193 | , engine VARCHAR(20) NOT NULL | ||
32 | 194 | , PRIMARY KEY (run_id, operation_name) | ||
33 | 195 | ) ENGINE=InnoDB; | ||
34 | 196 | |||
35 | 197 | CREATE TABLE dbt2_run_iterations ( | ||
36 | 198 | run_id INT NOT NULL | ||
37 | 199 | , tpm DECIMAL(6,2) NOT NULL | ||
38 | 200 | , connections INT NOT NULL | ||
39 | 201 | , test_time INT NOT NULL | ||
40 | 202 | , rollbacks INT NOT NULL | ||
41 | 203 | , warehouses INT NOT NULL | ||
42 | 204 | , PRIMARY KEY (run_id, connections, test_time) | ||
43 | 205 | ) ENGINE=InnoDB; | ||
44 | 206 | |||
45 | 207 | CREATE TABLE drizzleslap_run_iterations ( | ||
46 | 208 | run_id INT NOT NULL | ||
47 | 209 | , engine_name VARCHAR(40) NOT NULL | ||
48 | 210 | , test_name VARCHAR(40) NOT NULL | ||
49 | 211 | , queries_avg DECIMAL(8,3) NOT NULL | ||
50 | 212 | , queries_min DECIMAL(8,3) NOT NULL | ||
51 | 213 | , queries_max DECIMAL(8,3) NOT NULL | ||
52 | 214 | , total_time DECIMAL(8,3) NOT NULL | ||
53 | 215 | , stddev DECIMAL(8,3) NOT NULL | ||
54 | 216 | , iterations INT NOT NULL | ||
55 | 217 | , concurrency INT NOT NULL | ||
56 | 218 | , concurrency2 INT NOT NULL | ||
57 | 219 | , queries_per_client INT NOT NULL | ||
58 | 220 | , PRIMARY KEY (run_id, test_name, concurrency) | ||
59 | 221 | ) ENGINE=InnoDB; | ||
60 | 185 | """ | 222 | """ |
61 | 186 | execute_sql(create_sql) | 223 | execute_sql(create_sql) |
62 | 187 | 224 | ||
63 | === modified file 'drizzle/automation/lib/util.py' | |||
64 | --- drizzle/automation/lib/util.py 2010-01-07 20:48:08 +0000 | |||
65 | +++ drizzle/automation/lib/util.py 2010-01-22 04:01:12 +0000 | |||
66 | @@ -70,7 +70,7 @@ | |||
67 | 70 | 70 | ||
68 | 71 | def log_sysbench_run(run_id, config_id, server_name, server_version, run_date): | 71 | def log_sysbench_run(run_id, config_id, server_name, server_version, run_date): |
69 | 72 | """Creates a new run record in the database for this run""" | 72 | """Creates a new run record in the database for this run""" |
71 | 73 | sql= """INSERT INTO sysbench_runs ( | 73 | sql= """INSERT INTO bench_runs ( |
72 | 74 | run_id | 74 | run_id |
73 | 75 | , config_id | 75 | , config_id |
74 | 76 | , server | 76 | , server |
75 | @@ -92,17 +92,17 @@ | |||
76 | 92 | 92 | ||
77 | 93 | # If we have not already done so, we query the local DB for the ID | 93 | # If we have not already done so, we query the local DB for the ID |
78 | 94 | # matching this sqlbench config name. If none is there, we insert | 94 | # matching this sqlbench config name. If none is there, we insert |
80 | 95 | # a new record in the sysbench_config table and return the newly generated | 95 | # a new record in the bench_config table and return the newly generated |
81 | 96 | # identifier. | 96 | # identifier. |
82 | 97 | 97 | ||
84 | 98 | sql= "SELECT config_id FROM sysbench_config WHERE name = '%s'" % bench_config_name | 98 | sql= "SELECT config_id FROM bench_config WHERE name = '%s'" % bench_config_name |
85 | 99 | 99 | ||
86 | 100 | from drizzle.automation.lib import db | 100 | from drizzle.automation.lib import db |
87 | 101 | result= db.get_select(sql) | 101 | result= db.get_select(sql) |
88 | 102 | 102 | ||
89 | 103 | if len(result) == 0: | 103 | if len(result) == 0: |
90 | 104 | # Insert a new record for this config and return the new ID... | 104 | # Insert a new record for this config and return the new ID... |
92 | 105 | sql= "INSERT INTO sysbench_config (config_id, name) VALUES (NULL, '%s')" % bench_config_name | 105 | sql= "INSERT INTO bench_config (config_id, name) VALUES (NULL, '%s')" % bench_config_name |
93 | 106 | db.execute_sql(sql) | 106 | db.execute_sql(sql) |
94 | 107 | return getConfigId(bench_config_name) | 107 | return getConfigId(bench_config_name) |
95 | 108 | else: | 108 | else: |
96 | @@ -113,7 +113,7 @@ | |||
97 | 113 | def getNextRunId(): | 113 | def getNextRunId(): |
98 | 114 | """Returns a new run identifier from the database. | 114 | """Returns a new run identifier from the database. |
99 | 115 | The run ID is used in logging the results of the run iterations.""" | 115 | The run ID is used in logging the results of the run iterations.""" |
101 | 116 | sql= "SELECT MAX(run_id) as new_run_id FROM sysbench_runs" | 116 | sql= "SELECT MAX(run_id) as new_run_id FROM bench_runs" |
102 | 117 | 117 | ||
103 | 118 | from drizzle.automation.lib import db | 118 | from drizzle.automation.lib import db |
104 | 119 | result= db.get_select(sql) | 119 | result= db.get_select(sql) |
105 | @@ -132,8 +132,8 @@ | |||
106 | 132 | sql= """ | 132 | sql= """ |
107 | 133 | SELECT | 133 | SELECT |
108 | 134 | run_id | 134 | run_id |
111 | 135 | FROM sysbench_config c | 135 | FROM bench_config c |
112 | 136 | NATURAL JOIN sysbench_runs r | 136 | NATURAL JOIN bench_runs r |
113 | 137 | WHERE c.name = '%s' | 137 | WHERE c.name = '%s' |
114 | 138 | AND r.server = '%s' | 138 | AND r.server = '%s' |
115 | 139 | AND r.version LIKE '%s%%' | 139 | AND r.version LIKE '%s%%' |
116 | 140 | 140 | ||
117 | === modified file 'drizzle/automation/reports/dbt2.py' | |||
118 | --- drizzle/automation/reports/dbt2.py 2010-01-07 20:48:08 +0000 | |||
119 | +++ drizzle/automation/reports/dbt2.py 2010-01-22 04:01:12 +0000 | |||
120 | @@ -50,8 +50,8 @@ | |||
121 | 50 | , ROUND(agg.max_tpm,2) AS max_tpm | 50 | , ROUND(agg.max_tpm,2) AS max_tpm |
122 | 51 | , ROUND(agg.avg_tpm,2) AS avg_tpm | 51 | , ROUND(agg.avg_tpm,2) AS avg_tpm |
123 | 52 | , ROUND(agg.stddev_tpm,2) AS stddev_tpm | 52 | , ROUND(agg.stddev_tpm,2) AS stddev_tpm |
126 | 53 | FROM sysbench_config c | 53 | FROM bench_config c |
127 | 54 | NATURAL JOIN sysbench_runs r | 54 | NATURAL JOIN bench_runs r |
128 | 55 | NATURAL JOIN dbt2_run_iterations i | 55 | NATURAL JOIN dbt2_run_iterations i |
129 | 56 | INNER JOIN ( | 56 | INNER JOIN ( |
130 | 57 | SELECT | 57 | SELECT |
131 | @@ -126,8 +126,8 @@ | |||
132 | 126 | sql= """ | 126 | sql= """ |
133 | 127 | SELECT | 127 | SELECT |
134 | 128 | run_id | 128 | run_id |
137 | 129 | FROM sysbench_config c | 129 | FROM bench_config c |
138 | 130 | NATURAL JOIN sysbench_runs r | 130 | NATURAL JOIN bench_runs r |
139 | 131 | WHERE c.name = '%s' | 131 | WHERE c.name = '%s' |
140 | 132 | AND r.server = '%s' | 132 | AND r.server = '%s' |
141 | 133 | AND r.version LIKE '%s%%' | 133 | AND r.version LIKE '%s%%' |
142 | @@ -201,8 +201,8 @@ | |||
143 | 201 | , ROUND(agg.max_tpm,2) AS max_tpm | 201 | , ROUND(agg.max_tpm,2) AS max_tpm |
144 | 202 | , ROUND(agg.avg_tpm,2) AS avg_tpm | 202 | , ROUND(agg.avg_tpm,2) AS avg_tpm |
145 | 203 | , ROUND(agg.stddev_tpm,2) AS stddev_tpm | 203 | , ROUND(agg.stddev_tpm,2) AS stddev_tpm |
148 | 204 | FROM sysbench_config c | 204 | FROM bench_config c |
149 | 205 | NATURAL JOIN sysbench_runs r | 205 | NATURAL JOIN bench_runs r |
150 | 206 | NATURAL JOIN dbt2_run_iterations i | 206 | NATURAL JOIN dbt2_run_iterations i |
151 | 207 | INNER JOIN ( | 207 | INNER JOIN ( |
152 | 208 | SELECT | 208 | SELECT |
153 | @@ -211,8 +211,8 @@ | |||
154 | 211 | , MAX(tpm) as max_tpm | 211 | , MAX(tpm) as max_tpm |
155 | 212 | , AVG(tpm) as avg_tpm | 212 | , AVG(tpm) as avg_tpm |
156 | 213 | , STDDEV(tpm) as stddev_tpm | 213 | , STDDEV(tpm) as stddev_tpm |
159 | 214 | FROM sysbench_config conf | 214 | FROM bench_config conf |
160 | 215 | NATURAL JOIN sysbench_runs runs | 215 | NATURAL JOIN bench_runs runs |
161 | 216 | NATURAL JOIN dbt2_run_iterations iter | 216 | NATURAL JOIN dbt2_run_iterations iter |
162 | 217 | WHERE conf.name = '%s' | 217 | WHERE conf.name = '%s' |
163 | 218 | AND runs.server = '%s' | 218 | AND runs.server = '%s' |
164 | 219 | 219 | ||
165 | === modified file 'drizzle/automation/reports/drizzleslap.py' | |||
166 | --- drizzle/automation/reports/drizzleslap.py 2010-01-07 20:48:08 +0000 | |||
167 | +++ drizzle/automation/reports/drizzleslap.py 2010-01-22 04:01:12 +0000 | |||
168 | @@ -51,8 +51,8 @@ | |||
169 | 51 | , FORMAT(agg.max_total_time,3) AS max_total_time | 51 | , FORMAT(agg.max_total_time,3) AS max_total_time |
170 | 52 | , FORMAT(agg.avg_total_time,3) AS avg_total_time | 52 | , FORMAT(agg.avg_total_time,3) AS avg_total_time |
171 | 53 | , FORMAT(agg.stddev_total_time,3) AS stddev_total_time | 53 | , FORMAT(agg.stddev_total_time,3) AS stddev_total_time |
174 | 54 | FROM sysbench_config c | 54 | FROM bench_config c |
175 | 55 | NATURAL JOIN sysbench_runs r | 55 | NATURAL JOIN bench_runs r |
176 | 56 | NATURAL JOIN drizzleslap_run_iterations i | 56 | NATURAL JOIN drizzleslap_run_iterations i |
177 | 57 | INNER JOIN ( | 57 | INNER JOIN ( |
178 | 58 | SELECT | 58 | SELECT |
179 | @@ -130,8 +130,8 @@ | |||
180 | 130 | sql= """ | 130 | sql= """ |
181 | 131 | SELECT | 131 | SELECT |
182 | 132 | run_id | 132 | run_id |
185 | 133 | FROM sysbench_config c | 133 | FROM bench_config c |
186 | 134 | NATURAL JOIN sysbench_runs r | 134 | NATURAL JOIN bench_runs r |
187 | 135 | WHERE c.name = '%s' | 135 | WHERE c.name = '%s' |
188 | 136 | AND r.server = '%s' | 136 | AND r.server = '%s' |
189 | 137 | AND r.version LIKE '%s%%' | 137 | AND r.version LIKE '%s%%' |
190 | @@ -205,8 +205,8 @@ | |||
191 | 205 | , FORMAT(agg.max_total_time,3) AS max_total_time | 205 | , FORMAT(agg.max_total_time,3) AS max_total_time |
192 | 206 | , FORMAT(agg.avg_total_time,3) AS avg_total_time | 206 | , FORMAT(agg.avg_total_time,3) AS avg_total_time |
193 | 207 | , FORMAT(agg.stddev_total_time,3) AS stddev_total_time | 207 | , FORMAT(agg.stddev_total_time,3) AS stddev_total_time |
196 | 208 | FROM sysbench_config c | 208 | FROM bench_config c |
197 | 209 | NATURAL JOIN sysbench_runs r | 209 | NATURAL JOIN bench_runs r |
198 | 210 | NATURAL JOIN drizzleslap_run_iterations i | 210 | NATURAL JOIN drizzleslap_run_iterations i |
199 | 211 | INNER JOIN ( | 211 | INNER JOIN ( |
200 | 212 | SELECT | 212 | SELECT |
201 | @@ -215,8 +215,8 @@ | |||
202 | 215 | , MAX(total_time) as max_total_time | 215 | , MAX(total_time) as max_total_time |
203 | 216 | , AVG(total_time) as avg_total_time | 216 | , AVG(total_time) as avg_total_time |
204 | 217 | , STDDEV(total_time) as stddev_total_time | 217 | , STDDEV(total_time) as stddev_total_time |
207 | 218 | FROM sysbench_config conf | 218 | FROM bench_config conf |
208 | 219 | NATURAL JOIN sysbench_runs runs | 219 | NATURAL JOIN bench_runs runs |
209 | 220 | NATURAL JOIN drizzleslap_run_iterations iter | 220 | NATURAL JOIN drizzleslap_run_iterations iter |
210 | 221 | WHERE conf.name = '%s' | 221 | WHERE conf.name = '%s' |
211 | 222 | AND runs.server = '%s' | 222 | AND runs.server = '%s' |
212 | 223 | 223 | ||
213 | === modified file 'drizzle/automation/reports/sqlbench.py' | |||
214 | --- drizzle/automation/reports/sqlbench.py 2010-01-07 20:48:08 +0000 | |||
215 | +++ drizzle/automation/reports/sqlbench.py 2010-01-22 04:01:12 +0000 | |||
216 | @@ -51,8 +51,8 @@ | |||
217 | 51 | , ROUND(agg.max_seconds,2) AS max_seconds | 51 | , ROUND(agg.max_seconds,2) AS max_seconds |
218 | 52 | , ROUND(agg.avg_seconds,2) AS avg_seconds | 52 | , ROUND(agg.avg_seconds,2) AS avg_seconds |
219 | 53 | , ROUND(agg.stddev_seconds,2) AS stddev_seconds | 53 | , ROUND(agg.stddev_seconds,2) AS stddev_seconds |
222 | 54 | FROM sysbench_config c | 54 | FROM bench_config c |
223 | 55 | NATURAL JOIN sysbench_runs r | 55 | NATURAL JOIN bench_runs r |
224 | 56 | NATURAL JOIN sqlbench_run_iterations i | 56 | NATURAL JOIN sqlbench_run_iterations i |
225 | 57 | INNER JOIN ( | 57 | INNER JOIN ( |
226 | 58 | SELECT | 58 | SELECT |
227 | @@ -127,8 +127,8 @@ | |||
228 | 127 | sql= """ | 127 | sql= """ |
229 | 128 | SELECT | 128 | SELECT |
230 | 129 | run_id | 129 | run_id |
233 | 130 | FROM sysbench_config c | 130 | FROM bench_config c |
234 | 131 | NATURAL JOIN sysbench_runs r | 131 | NATURAL JOIN bench_runs r |
235 | 132 | WHERE c.name = '%s' | 132 | WHERE c.name = '%s' |
236 | 133 | AND r.server = '%s' | 133 | AND r.server = '%s' |
237 | 134 | AND r.version LIKE '%s%%' | 134 | AND r.version LIKE '%s%%' |
238 | @@ -205,8 +205,8 @@ | |||
239 | 205 | , ROUND(agg.max_seconds,2) AS max_seconds | 205 | , ROUND(agg.max_seconds,2) AS max_seconds |
240 | 206 | , ROUND(agg.avg_seconds,2) AS avg_seconds | 206 | , ROUND(agg.avg_seconds,2) AS avg_seconds |
241 | 207 | , ROUND(agg.stddev_seconds,2) AS stddev_seconds | 207 | , ROUND(agg.stddev_seconds,2) AS stddev_seconds |
244 | 208 | FROM sysbench_config c | 208 | FROM bench_config c |
245 | 209 | NATURAL JOIN sysbench_runs r | 209 | NATURAL JOIN bench_runs r |
246 | 210 | NATURAL JOIN sqlbench_run_iterations i | 210 | NATURAL JOIN sqlbench_run_iterations i |
247 | 211 | INNER JOIN ( | 211 | INNER JOIN ( |
248 | 212 | SELECT | 212 | SELECT |
249 | @@ -215,8 +215,8 @@ | |||
250 | 215 | , MAX(seconds) as max_seconds | 215 | , MAX(seconds) as max_seconds |
251 | 216 | , AVG(seconds) as avg_seconds | 216 | , AVG(seconds) as avg_seconds |
252 | 217 | , STDDEV(seconds) as stddev_seconds | 217 | , STDDEV(seconds) as stddev_seconds |
255 | 218 | FROM sysbench_config conf | 218 | FROM bench_config conf |
256 | 219 | NATURAL JOIN sysbench_runs runs | 219 | NATURAL JOIN bench_runs runs |
257 | 220 | NATURAL JOIN sqlbench_run_iterations iter | 220 | NATURAL JOIN sqlbench_run_iterations iter |
258 | 221 | WHERE conf.name = '%s' | 221 | WHERE conf.name = '%s' |
259 | 222 | AND runs.server = '%s' | 222 | AND runs.server = '%s' |
260 | 223 | 223 | ||
261 | === modified file 'drizzle/automation/reports/sysbench.py' | |||
262 | --- drizzle/automation/reports/sysbench.py 2010-01-07 20:48:08 +0000 | |||
263 | +++ drizzle/automation/reports/sysbench.py 2010-01-22 04:01:12 +0000 | |||
264 | @@ -35,8 +35,8 @@ | |||
265 | 35 | sql= """ | 35 | sql= """ |
266 | 36 | SELECT | 36 | SELECT |
267 | 37 | run_id | 37 | run_id |
270 | 38 | FROM sysbench_config c | 38 | FROM bench_config c |
271 | 39 | NATURAL JOIN sysbench_runs r | 39 | NATURAL JOIN bench_runs r |
272 | 40 | WHERE c.name = '%s' | 40 | WHERE c.name = '%s' |
273 | 41 | AND r.server = '%s' | 41 | AND r.server = '%s' |
274 | 42 | AND r.version LIKE '%s%%' | 42 | AND r.version LIKE '%s%%' |
275 | @@ -81,8 +81,8 @@ | |||
276 | 81 | , ROUND(agg.max_tps, 2) AS max_tps | 81 | , ROUND(agg.max_tps, 2) AS max_tps |
277 | 82 | , ROUND(agg.avg_tps, 2) AS avg_tps | 82 | , ROUND(agg.avg_tps, 2) AS avg_tps |
278 | 83 | , ROUND(agg.stddev_tps, 2) AS stddev_tps | 83 | , ROUND(agg.stddev_tps, 2) AS stddev_tps |
281 | 84 | FROM sysbench_config c | 84 | FROM bench_config c |
282 | 85 | NATURAL JOIN sysbench_runs r | 85 | NATURAL JOIN bench_runs r |
283 | 86 | NATURAL JOIN sysbench_run_iterations i | 86 | NATURAL JOIN sysbench_run_iterations i |
284 | 87 | INNER JOIN ( | 87 | INNER JOIN ( |
285 | 88 | SELECT | 88 | SELECT |
286 | @@ -123,8 +123,8 @@ | |||
287 | 123 | , ROUND(agg.max_tps, 2) AS max_tps | 123 | , ROUND(agg.max_tps, 2) AS max_tps |
288 | 124 | , ROUND(agg.avg_tps, 2) AS avg_tps | 124 | , ROUND(agg.avg_tps, 2) AS avg_tps |
289 | 125 | , ROUND(agg.stddev_tps, 2) AS stddev_tps | 125 | , ROUND(agg.stddev_tps, 2) AS stddev_tps |
292 | 126 | FROM sysbench_config c | 126 | FROM bench_config c |
293 | 127 | NATURAL JOIN sysbench_runs r | 127 | NATURAL JOIN bench_runs r |
294 | 128 | NATURAL JOIN sysbench_run_iterations i | 128 | NATURAL JOIN sysbench_run_iterations i |
295 | 129 | INNER JOIN ( | 129 | INNER JOIN ( |
296 | 130 | SELECT | 130 | SELECT |
297 | @@ -133,8 +133,8 @@ | |||
298 | 133 | , MAX(tps) as max_tps | 133 | , MAX(tps) as max_tps |
299 | 134 | , AVG(tps) as avg_tps | 134 | , AVG(tps) as avg_tps |
300 | 135 | , STDDEV(tps) as stddev_tps | 135 | , STDDEV(tps) as stddev_tps |
303 | 136 | FROM sysbench_config conf | 136 | FROM bench_config conf |
304 | 137 | NATURAL JOIN sysbench_runs runs | 137 | NATURAL JOIN bench_runs runs |
305 | 138 | NATURAL JOIN sysbench_run_iterations iter | 138 | NATURAL JOIN sysbench_run_iterations iter |
306 | 139 | WHERE conf.name = '%s' | 139 | WHERE conf.name = '%s' |
307 | 140 | AND runs.server = '%s' | 140 | AND runs.server = '%s' |
Rename sysbench_config and sysbench_runs tables to be more generic since they are used by many different benchmarks, bench_config and bench_runs