Greenplum创建分区表很慢

时间:2018-09-09 04:28:39

标签: create-table greenplum

我运行psql创建一个分区表。 2小时了,但是还没有结束。有什么问题?如何加快速度?非常感谢。

我的命令是

DROP SCHEMA IF EXISTS people_hotel CASCADE; CREATE SCHEMA people_hotel; SET SEARCH_PATH TO people_hotel, public, pg_catalog, pg_toolkit; ALTER ROLE user SET search_path TO people_hotel, public, pg_catalog, pg_toolkit;

drop table if exists people_hotel.event;
create table people_hotel.event (  event_id bigint,  time bigint, object bigint, loc_id integer )
distributed by (event_id)
PARTITION BY RANGE(time)
SUBPARTITION by range(object)
SUBPARTITION TEMPLATE (

    START (0) INCLUSIVE END (100000000) EXCLUSIVE EVERY (10000),
    DEFAULT SUBPARTITION other_object   ) (START (bigint '1527811200000') INCLUSIVE    END (bigint '1544975684280') INCLUSIVE   EVERY (bigint '2592000000'),   DEFAULT PARTITION other_time );
  • greenplum具有1个主节点和2个段主机,每个主机有10个实例(10个主目录)
  • Greenplum版本:5.9.0
  • 操作系统版本:ubuntu 16.04

0 个答案:

没有答案