database - How to trigger data population when connecting new Incremental type materialised views to a massive table with existi

We recently built a data processing pipeline that uses Clickhouse as our big data database.In the pipe

We recently built a data processing pipeline that uses Clickhouse as our big data database.

In the pipeline, data is continually ingested into a huge table (let's call it table A) with ~60 columns. It now has billions of rows of data.

Table A is the data source for multiple dependent target tables that perform aggregation on the data. The target tables are connected to Table A via the Incremental type of Materialised views (MV).

We recently need to connect additional Incremental MVs + target tables to Table A.

However, since the MVs are incremental, the new target tables are not populated.

To solve this problem, we've considered:

  1. Renaming Table A to Table B
  2. Recreate an empty Table A, and then
  3. Re-insert the data from Table B back to Table A batch by batch

However, this seems excessively troublesome and time-consuming.

What would be the best approach to handle this scenario?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745000617a4605470.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信