projects
/
pgbench-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0eeb8
)
Grouped fastest result list usefully
author
gsmith
<gsmith@grace.example.com>
Thu, 18 Mar 2010 23:55:15 +0000
(19:55 -0400)
committer
gsmith
<gsmith@grace.example.com>
Thu, 18 Mar 2010 23:55:15 +0000
(19:55 -0400)
fastest.sql
patch
|
blob
|
blame
|
history
diff --git
a/fastest.sql
b/fastest.sql
index ddda64025aff99b3ac9f3e47fa3bcac32ab7042b..ce333bebe64c880efb21cae97f41ce0ba9dbfe00 100644
(file)
--- a/
fastest.sql
+++ b/
fastest.sql
@@
-1,5
+1,12
@@
SELECT
set,script,scale,clients,workers,
- round(tps) as tps
-FROM tests
+ round(tps) AS tps
+FROM
+(
+ SELECT
+ set,script,scale,clients,workers,
+ max(tps) AS tps
+ FROM tests
+ GROUP BY set,script,scale,clients,workers
+) AS grouped
ORDER BY tps DESC LIMIT 20;