V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dreamerfable
V2EX  ›  问与答

Greenplum 一个大表关联上百个小表,应该如何处理?

  •  
  •   dreamerfable · Dec 13, 2019 · 2479 views
    This topic created in 2329 days ago, the information mentioned may be changed or developed.

    Greenplum 数据库

    有一张大的明细表,数据近千万级。

    有上百张小表,小表的主键与大表的主键是一一对应的

    想要把大表和小表组合到一起生成一张大宽表,有什么好的处理方案?

    1 replies    2019-12-14 07:18:19 +08:00
    gaodeng2008
        1
    gaodeng2008  
       Dec 14, 2019 via Android
    把主键作为分布键就可以,也可以考虑 6.2 新特性物化视图
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3891 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:18 · PVG 08:18 · LAX 17:18 · JFK 20:18
    ♥ Do have faith in what you're doing.