dreamerfable
V2EX  ›  问与答

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

  •  
  •   dreamerfable · Dec 13, 2019 · 2539 views
    This topic created in 2347 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   ·   5490 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 08:37 · PVG 16:37 · LAX 01:37 · JFK 04:37
    ♥ Do have faith in what you're doing.