提交 94c30fdb 编写于 作者: A Ashwin Agrawal

Reduce runtimes for some qp_* tests.

Before:
     qp_functions             ... ok (76.24 sec)  (diff:0.06 sec)
     qp_gist_indexes4         ... ok (88.46 sec)  (diff:0.07 sec)
     qp_with_clause           ... ok (130.70 sec)  (diff:0.32 sec)

After:
     qp_functions             ... ok (4.49 sec)  (diff:0.06 sec)
     qp_gist_indexes4         ... ok (16.18 sec)  (diff:0.06 sec)
     qp_with_clause           ... ok (54.41 sec)  (diff:0.30 sec)
上级 77c0d584
......@@ -1065,17 +1065,19 @@ drop type sum_prod cascade;
NOTICE: drop cascades to function num_add_prod(integer,integer)
drop table bank_ac;
drop table emp_fun cascade;
NOTICE: drop cascades to function get_emp_name(emp_fun)
NOTICE: drop cascades to function new_emp_fun()
NOTICE: drop cascades to function increment(emp_fun)
NOTICE: drop cascades to 3 other objects
DETAIL: drop cascades to function increment(emp_fun)
drop cascades to function new_emp_fun()
drop cascades to function get_emp_name(emp_fun)
drop table tab_sour cascade;
NOTICE: drop cascades to function set_tab2()
NOTICE: drop cascades to function set_tab(integer)
NOTICE: drop cascades to function get_tab(integer)
NOTICE: drop cascades to 3 other objects
DETAIL: drop cascades to function get_tab(integer)
drop cascades to function set_tab(integer)
drop cascades to function set_tab2()
drop table fun_tree;
drop table logtable;
drop table db;
create table stress_source as select a from generate_series(1,12000) a;
create table stress_source as select a from generate_series(1,100) a;
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column(s) named 'a' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
create table stress_table (a int primary key, b int);
......
......@@ -170,7 +170,7 @@ INSERT INTO geometricTypes (seed, c, b, p)
SeedToCircle(x),
SeedToBox(x),
SeedToPolygon(x)
FROM generate_series(1, 300000)x
FROM generate_series(1, 20000)x
;
-- ----------------------------------------------------------------------
-- Test: test05_select.sql
......
......@@ -170,7 +170,7 @@ INSERT INTO geometricTypes (seed, c, b, p)
SeedToCircle(x),
SeedToBox(x),
SeedToPolygon(x)
FROM generate_series(1, 300000)x
FROM generate_series(1, 20000)x
;
-- ----------------------------------------------------------------------
-- Test: test05_select.sql
......
......@@ -503,7 +503,7 @@ drop table tab_sour cascade;
drop table fun_tree;
drop table logtable;
drop table db;
create table stress_source as select a from generate_series(1,12000) a;
create table stress_source as select a from generate_series(1,100) a;
create table stress_table (a int primary key, b int);
create or replace function stress_test() returns text as
$body$
......
......@@ -194,7 +194,7 @@ INSERT INTO geometricTypes (seed, c, b, p)
SeedToCircle(x),
SeedToBox(x),
SeedToPolygon(x)
FROM generate_series(1, 300000)x
FROM generate_series(1, 20000)x
;
......
......@@ -9838,7 +9838,7 @@ CREATE TABLE foo (key INTEGER, value INTEGER);
INSERT INTO foo SELECT i, i % 10 from generate_series(1, 100) i;
CREATE TABLE bar(bar_key INTEGER, bar_value INTEGER);
INSERT INTO bar SELECT i, i % 5 FROM generate_series(1, 100000) i;
INSERT INTO bar SELECT i, i % 5 FROM generate_series(1, 1000) i;
SET enable_hashjoin = OFF;
SET enable_mergejoin = OFF;
......@@ -10080,7 +10080,7 @@ SET gp_cte_sharing = ON;
-------------------------------------------------------------------------------------------------------------------------------
CREATE TABLE emp (ename CHARACTER VARYING(50), empno INTEGER, mgr INTEGER, deptno INTEGER);
INSERT INTO emp SELECT i || 'NAME', i, i%6, i%16 FROM generate_series(1, 10000) i;
INSERT INTO emp SELECT i || 'NAME', i, i%6, i%16 FROM generate_series(1, 100) i;
CREATE TABLE manager (dept_mgr_no INTEGER);
INSERT INTO manager SELECT i FROM generate_series(1, 100) i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册