-------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2014-11-19 16:30:09 | +---------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2014-11-19 16:30:09 | +---------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.00 sec) -------------- select p_mfgr, count(*), avg(ps_availqty), avg(p_retailprice), avg(ps_supplycost) from part, partsupp where p_size in (49, 50) and p_retailprice < 1250 and ps_partkey = p_partkey and ps_suppkey <= 1000000 and ps_partkey <= 4000000 and p_partkey <= 4000000 group by p_mfgr order by p_mfgr -------------- +----------------+----------+------------------+--------------------+--------------------+ | p_mfgr | count(*) | avg(ps_availqty) | avg(p_retailprice) | avg(ps_supplycost) | +----------------+----------+------------------+--------------------+--------------------+ | Manufacturer#1 | 156400 | 4912.4341 | 1123.403325 | 496.370313 | | Manufacturer#2 | 151600 | 4895.3694 | 1114.938127 | 506.487236 | | Manufacturer#3 | 148800 | 4976.2507 | 1116.569113 | 494.204026 | | Manufacturer#4 | 162000 | 5076.5691 | 1115.628099 | 494.695019 | | Manufacturer#5 | 154000 | 5001.4026 | 1112.475325 | 491.103708 | +----------------+----------+------------------+--------------------+--------------------+ 5 rows in set (0.58 sec) -------------- select calgetstats() -------------- +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-25442; CacheI/O-32535; BlocksTouched-32508; PartitionBlocksEliminated-0; MsgBytesIn-831KB; MsgBytesOut-911KB; Mode-Distributed | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2014-11-19 16:30:10 | +---------------------+ 1 row in set (0.00 sec) -------------- select p_mfgr, count(*), avg(ps_availqty), avg(p_retailprice), avg(ps_supplycost) from part, partsupp where p_size in (49, 50) and p_retailprice < 1250 and ps_partkey = p_partkey and ps_suppkey <= 1000000 and ps_partkey <= 4000000 and p_partkey <= 4000000 group by p_mfgr order by p_mfgr -------------- +----------------+----------+------------------+--------------------+--------------------+ | p_mfgr | count(*) | avg(ps_availqty) | avg(p_retailprice) | avg(ps_supplycost) | +----------------+----------+------------------+--------------------+--------------------+ | Manufacturer#1 | 156400 | 4912.4341 | 1123.403325 | 496.370313 | | Manufacturer#2 | 151600 | 4895.3694 | 1114.938127 | 506.487236 | | Manufacturer#3 | 148800 | 4976.2507 | 1116.569113 | 494.204026 | | Manufacturer#4 | 162000 | 5076.5691 | 1115.628099 | 494.695019 | | Manufacturer#5 | 154000 | 5001.4026 | 1112.475325 | 491.103708 | +----------------+----------+------------------+--------------------+--------------------+ 5 rows in set (0.40 sec) -------------- select calgetstats() -------------- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-32508; BlocksTouched-32508; PartitionBlocksEliminated-0; MsgBytesIn-831KB; MsgBytesOut-911KB; Mode-Distributed | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.01 sec) -------------- select p_mfgr, count(*), avg(ps_availqty), avg(p_retailprice), avg(ps_supplycost) from part, partsupp where p_size in (2, 50) and p_retailprice < 1250 and ps_partkey = p_partkey and ps_suppkey <= 750000 and ps_partkey <= 4000000 and p_partkey <= 4000000 group by p_mfgr order by p_mfgr -------------- +----------------+----------+------------------+--------------------+--------------------+ | p_mfgr | count(*) | avg(ps_availqty) | avg(p_retailprice) | avg(ps_supplycost) | +----------------+----------+------------------+--------------------+--------------------+ | Manufacturer#1 | 168000 | 4978.4196 | 1119.395786 | 507.200042 | | Manufacturer#2 | 162000 | 5018.6235 | 1109.180642 | 507.651432 | | Manufacturer#3 | 160000 | 4974.3625 | 1116.544925 | 489.999525 | | Manufacturer#4 | 151200 | 5083.5701 | 1119.756640 | 495.833148 | | Manufacturer#5 | 170400 | 5080.1068 | 1109.925681 | 488.736268 | +----------------+----------+------------------+--------------------+--------------------+ 5 rows in set (0.57 sec) -------------- select calgetstats() -------------- +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-25442; CacheI/O-32527; BlocksTouched-32508; PartitionBlocksEliminated-0; MsgBytesIn-865KB; MsgBytesOut-957KB; Mode-Distributed | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2014-11-19 16:30:11 | +---------------------+ 1 row in set (0.00 sec) -------------- select p_mfgr, count(*), avg(ps_availqty), avg(p_retailprice), avg(ps_supplycost) from part, partsupp where p_size in (2, 50) and p_retailprice < 1250 and ps_partkey = p_partkey and ps_suppkey <= 750000 and ps_partkey <= 4000000 and p_partkey <= 4000000 group by p_mfgr order by p_mfgr -------------- +----------------+----------+------------------+--------------------+--------------------+ | p_mfgr | count(*) | avg(ps_availqty) | avg(p_retailprice) | avg(ps_supplycost) | +----------------+----------+------------------+--------------------+--------------------+ | Manufacturer#1 | 168000 | 4978.4196 | 1119.395786 | 507.200042 | | Manufacturer#2 | 162000 | 5018.6235 | 1109.180642 | 507.651432 | | Manufacturer#3 | 160000 | 4974.3625 | 1116.544925 | 489.999525 | | Manufacturer#4 | 151200 | 5083.5701 | 1119.756640 | 495.833148 | | Manufacturer#5 | 170400 | 5080.1068 | 1109.925681 | 488.736268 | +----------------+----------+------------------+--------------------+--------------------+ 5 rows in set (0.41 sec) -------------- select calgetstats() -------------- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-32508; BlocksTouched-32508; PartitionBlocksEliminated-0; MsgBytesIn-865KB; MsgBytesOut-957KB; Mode-Distributed | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.01 sec) Bye