Month-by-month requests submitted

Automatically updated version with more detail
MonthYearRequests Submitted
12020364
22020349
32020379
42020541
52020667
62020578
72020574
82020489
92020494
102020549
112020544
122020522
12021621
22021522
32021545
42021557
52021470
62021430
72021416
82021408
92021474
102021339
112021272
122021262
SELECT EXTRACT(MONTH from timestamp) as "Month", EXTRACT(YEAR from timestamp) as "Year", COUNT(*) as "Requests Submitted" FROM log l WHERE 1=1 AND action = 'Email Confirmed' AND l.objecttype = 'Request' AND l.timestamp BETWEEN '2019-01-01 00:00:00' AND '2021-01-01 00:00:00' GROUP BY EXTRACT(Month from timestamp), EXTRACT(YEAR from timestamp) Order by year, month;

Users who have closed requests in 2021

Automatically updated version
UsernameRequests closed
ElHef1508
Blablubbs1024
JJMC89945
Jack Frost479
LuK3254
JavaHurricane220
Alex Noble212
Stwalkerster111
Rich Smith106
urbanecm70
FlightTime69
Oshwah40
Operator87339
TNT32
DannyS71218
AfroThundr300773016
AmandaNP16
CodeLyoko13
1997kB12
QueerEcofeminist11
Dreamy Jazz11
GeneralNotability9
Waggie8
AntiCompositeNumber7
Praxidi cae5
Ivanvector4
Alpha30314
Sunmist3
Callanecc3
Dane3
Tks4Fish3
maurelio2
TheSandDoctor2
Clarkcj122
TBloemink2
Matthewrbowker2
Jon Kolbert1
select u.username as "Username", count(*) as "Requests closed" from log l inner join user u on l.user = u.id where 1=1 and l.action like 'Closed %' AND l.timestamp BETWEEN '2020-01-01 00:00:00' AND '2021-01-01 00:00:00' group by u.username order by 2 desc

Average response time

The average time from a request's email confirmation until the first response sent to the user. Times are hours.

This is split between requests which were deferred to a different queue, and requests which were not deferred to a different queue

Automatically updated version with more detail
MonthNon-deferred requestsDeferred requests
2020-01943.311636.99
2020-02797.521258.78
2020-03547.88654.80
2020-0461.3188.50
2020-051.0773.88
2020-061.8781.21
2020-072.75184.65
2020-083.64472.44
2020-093.53393.79
2020-103.96204.94
2020-114.2866.13
2020-123.63132.60
2021-013.16182.32
2021-024.39212.18
2021-033.37875.27
2021-045.051126.37
2021-055.68982.71
2021-068.11808.18
2021-076.08218.67
2021-087.15148.53
2021-098.57164.21
2021-1011.12192.34
2021-114.46173.54
2021-126.99158.81
with requeststats as ( select distinct r.id, r.date as submitdate, lec.timestamp as confirmdate, MIN(lc.timestamp) over (partition by r.id) as responsedate, case when ld.timestamp > 0 then 1 else 0 end as deferred from request r inner join log lec on lec.objecttype = 'Request' and lec.objectid = r.id and lec.action = 'Email Confirmed' left join ( -- first close select logfc.objectid as "request", MIN(logfc.timestamp) as "timestamp" from log logfc where 1=1 AND ( logfc.action LIKE 'Closed %' OR logfc.action = 'SentMail' ) AND logfc.action <> 'Closed 0' AND logfc.objecttype = 'Request' AND logfc.timestamp > 0 -- I hate MySQL... GROUP BY logfc.objectid ) lc on lc.request = r.id left join ( -- first deferral select logfd.objectid as "request", MIN(logfd.timestamp) as "timestamp" from log logfd where 1=1 AND logfd.action LIKE 'Deferred to %' AND logfd.objecttype = 'Request' AND logfd.timestamp > 0 AND logfd.user <> -1 -- skip system deferrals GROUP BY logfd.objectid ) ld on ld.request = r.id where 1=1 and r.status = 'Closed' AND r.date BETWEEN '2019-01-01 00:00:00' AND '2021-01-01 00:00:00' AND lc.timestamp IS NOT NULL ) SELECT concat(EXTRACT(YEAR from submitdate), '-', lpad(EXTRACT(Month from submitdate),2,'0')) as "Month", round(avg(case when deferred = 0 then unix_timestamp(responsedate) - unix_timestamp(confirmdate) end)/60/60, 2) "Non-deferred requests", round(avg(case when deferred = 1 then unix_timestamp(responsedate) - unix_timestamp(confirmdate) end)/60/60, 2) "Deferred requests" FROM requeststats group by EXTRACT(Month from submitdate), EXTRACT(YEAR from submitdate) ORDER BY 1 asc