From 7268672485dc5ea325a5ec76d4254b6114956b31 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 6 Aug 2014 19:07:38 +1000 Subject: [PATCH] sql - reloadstatus.sql - show what the db reload status is --- sql/reloadstatus.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sql/reloadstatus.sql diff --git a/sql/reloadstatus.sql b/sql/reloadstatus.sql new file mode 100644 index 00000000..184b85dc --- /dev/null +++ b/sql/reloadstatus.sql @@ -0,0 +1,5 @@ +select 'sharesummary' as "sharesummary",min(firstshare) as "min incomplete firstshare" from sharesummary where complete = 'n'; +select 'workinfo' as "workinfo",max(createdate) as "max createdate" from workinfo; +select 'auths' as "auths",max(createdate) as "max createdate" from auths; +select 'poolstats' as "poolstats",max(createdate) as "max createdate" from poolstats; +select 'userstats' as "userstats",max(statsdate) as "max statsdate - start of this hour" ,userid,workername from userstats group by userid,workername;