1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-18 20:42:02 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/calbench/.svn/text-base/rpt_results.sql.svn-base
2016-01-06 14:08:59 -06:00

66 lines
2.2 KiB
Plaintext

-- ----------------------------------------------
-- Display Distinct Error Messages
-- ----------------------------------------------
select rundesc into @last_rundesc from run_hist where id = (select max(id) from run_hist);
-- ----------------------------------------------
-- PIO Scalability
-- ----------------------------------------------
select description,
case when round(physical_io/pm_count/elapsedtime,0)
< (51200 * .70) then 'Fail vs 70% of FC Limit'
else 'Pass' end
"Pass/Fail",
substr(sqltext,1,30),
pm_count PMs,
round(elapsedtime,2) ela,
physical_IO PIO,
round(physical_io/pm_count/elapsedtime,0) "PIO/Sec/PM",
round(physical_io/pm_count/elapsedtime/512,2) "pct_FC",
RunDesc, id
from run_hist
where starttime > now()-interval 3 day
and rundesc = @last_rundesc and description = 'PIO Scalability'
order by sqltext, pm_count;
-- ----------------------------------------------
-- PIO Scalability - Different PM CASES
-- ----------------------------------------------
select description,
case when round(avg(physical_io/pm_count/elapsedtime),0)
< (51200 * .70) then 'Fail vs 70% of FC Theoretical'
else 'Pass' end
"Pass/Fail",
pm_count PMs,
round(avg(physical_io/pm_count/elapsedtime),0) "Average PIO/Sec/PM",
round(avg(physical_io/pm_count/elapsedtime)/512,2) "pct_target",
RunDesc
from run_hist
where starttime > now()-interval 3 day
and rundesc = @last_rundesc and description = 'PIO Scalability'
group by description, pm_count, rundesc
order by description, pm_count, rundesc;
-- ----------------------------------------------
-- PIO Scalability - Overall CASES
-- ----------------------------------------------
select description,
case when round(avg(physical_io/pm_count/elapsedtime),0)
< (51200 * .70) then 'Fail vs 70% of FC Theoretical'
else 'Pass' end
"Pass/Fail",
round(avg(physical_io/pm_count/elapsedtime),0) "Average PIO/Sec/PM",
round(avg(physical_io/pm_count/elapsedtime)/512,2) "pct_target",
RunDesc
from run_hist
where starttime > now()-interval 3 day
and rundesc = @last_rundesc and description = 'PIO Scalability'
group by description, rundesc
order by description, rundesc;