Data load to huge partitioned table

前端 未结 2 1729
轮回少年
轮回少年 2021-02-10 14:36

I have a huge table. First range partitioned by price_date, then hash partitioned by fund_id. The table has 430 million rows. Every day I have a batch job in which insert 1.5 mi

2条回答
  •  清酒与你
    2021-02-10 15:14

    I am not sure which database you are using,

    in case of SQL SERVER try creating a staging table, load data into that table, create index and contraints on this temp table and use

    ALTER TABLE with SWITCH clause to add this as a new partition to your current table.

提交回复
热议问题