You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-17 09:41:06 +03:00
118 lines
4.4 KiB
SQL
118 lines
4.4 KiB
SQL
-- --------------------------------------------------------------------------
|
|
-- \. calbench_nohup_n_times.sh 1 scan_scalability.sql 26 600
|
|
-- --------------------------------------------------------------------------
|
|
|
|
|
|
select 'Scan Scalability' into @desc_var;
|
|
use tpch1t;
|
|
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan4byte';
|
|
set @query = 'select /*4 byte*/ count(l_partkey) from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
|
|
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan4proj3';
|
|
set @query = 'select /*4_proj3*/ count(l_linestatus), count(l_suppkey), count(l_orderkey)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan4proj5';
|
|
set @query = 'select /*4_proj5*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan4proj7';
|
|
set @query = 'select /*4_proj7*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate),
|
|
count(l_extendedprice), count(l_commitdate)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan4proj9';
|
|
set @query = 'select /*4_proj9*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate),
|
|
count(l_extendedprice), count(l_commitdate), count(l_receiptdate), count(l_discount)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan8byte';
|
|
set @query = 'select /*8 byte*/ count(l_extendedprice) from lineitem where l_extendedprice between 1000 and 1250 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan8proj3';
|
|
set @query = 'select /*8_proj3*/ count(l_linestatus), count(l_suppkey), count(l_orderkey)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan8proj5';
|
|
set @query = 'select /*8_proj5*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan8proj7';
|
|
set @query = 'select /*8_proj7*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate),
|
|
count(l_extendedprice), count(l_commitdate)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'Scan8proj9';
|
|
set @query = 'select /*8_proj9*/ count(l_linestatus), count(l_suppkey), count(l_orderkey),count(l_quantity), count(l_shipdate),
|
|
count(l_extendedprice), count(l_commitdate), count(l_receiptdate), count(l_discount)
|
|
from lineitem where l_partkey between 100000000 and 100800000 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
|
|
-- set @stmtdesc_var = 'ScanDict10';
|
|
set @query = 'select /*8_proj_dict10*/ count(l_shipmode) from lineitem where l_extendedprice between 1000 and 1250 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
-- set @stmtdesc_var = 'ScanDict25';
|
|
set @query = 'select /*8_proj_dict25*/ count(l_shipinstruct) from lineitem where l_extendedprice between 1000 and 1250 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|
|
|
|
|
|
-- set @stmtdesc_var = 'ScanDict44';
|
|
set @query = 'select /*8_proj_dict44*/ count(l_comment) from lineitem where l_extendedprice between 1000 and 1250 and l_shipdate <''1992-12-31'';';
|
|
PREPARE stmt from @query;
|
|
EXECUTE stmt;
|
|
\. calbench_start_execute_end_2x.sql
|
|
|