最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论