Commit c9f1e89f authored by Łukasz Nowak's avatar Łukasz Nowak

- use standard count(*)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29181 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 169c5ea6
......@@ -37,9 +37,9 @@ fi
SELECT=""
for t in message message_queue ; do
SELECT=$SELECT"""
SELECT count(path) AS $t, method_id, processing, processing_node AS node, min(priority) AS min_pri, max(priority) AS max_pri FROM $t GROUP BY method_id, processing, processing_node ORDER BY node;
SELECT count(path) AS $t, processing, processing_node, min(priority) AS min_pri, max(priority) AS max_pri FROM $t GROUP BY processing, processing_node;
SELECT count(path) AS ${t}_count FROM $t;
SELECT count(*) AS $t, method_id, processing, processing_node AS node, min(priority) AS min_pri, max(priority) AS max_pri FROM $t GROUP BY method_id, processing, processing_node ORDER BY node;
SELECT count(*) AS $t, processing, processing_node, min(priority) AS min_pri, max(priority) AS max_pri FROM $t GROUP BY processing, processing_node;
SELECT count(*) AS ${t}_count FROM $t;
"""
done
watch -n $INTERVAL "mysql $MYSQL_OPT --disable-pager -t -e '$SELECT' "
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment