Commit 11aeab8f authored by Camil Staps's avatar Camil Staps 🍃

Recognise "instance X" queries in long-term statistics

parent b973b091
Pipeline #16481 passed with stage
in 14 minutes and 40 seconds
......@@ -8,7 +8,7 @@ $sql =
count(case when `responsecode`>1 and `responsecode` NOT IN (" . SQL_SERVER_ERROR . ") then 1 else null end),
sum(case when `query` LIKE '%::%' then 1 else null end),
sum(case when `query` LIKE 'type %' then 1 else null end),
sum(case when `query` LIKE 'class %' then 1 else null end),
sum(case when `query` LIKE 'class %' OR `query` LIKE 'instance %' then 1 else null end),
sum(case when `query` LIKE 'using %' then 1 else null end)
FROM `log`
INNER JOIN `useragent` ON `log`.`useragent_id` = `useragent`.`id`
......
......@@ -6,7 +6,7 @@ $sql =
count(*),
sum(case when `query` LIKE '%::%' then 1 else null end),
sum(case when `query` LIKE 'type %' then 1 else null end),
sum(case when `query` LIKE 'class %' then 1 else null end),
sum(case when `query` LIKE 'class %' OR `query` LIKE 'instance %' then 1 else null end),
sum(case when `query` LIKE 'using %' then 1 else null end)
FROM `log`
WHERE
......
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