为了更快的定位您的问题,请提供以下信息,谢谢
【详述】异步物化视图的执行时间疑问
【背景】
【业务影响】暂无
【是否存算分离】否
【StarRocks版本】2.5.5
【集群规模】6fe(1 follower+2observer)+6be(fe与be混部)
【机器信息】16C/64G/千兆ECS虚机
【联系方式】lirulei90#126.com
【具体信息】
# 物化视图的定义
mysql> show create table mv_tb1 \G
*************************** 1. row ***************************
Materialized View: mv_tb1
Create Materialized View: CREATE MATERIALIZED VIEW `mv_tb1`
COMMENT "MATERIALIZED_VIEW"
DISTRIBUTED BY HASH(`business_year`) BUCKETS 12
REFRESH ASYNC START("2024-08-20 07:00:00") EVERY(INTERVAL 1 DAY)
PROPERTIES (
"replication_num" = "3",
"storage_medium" = "HDD"
)
AS SELECT xxxxxx from XXXX
1 row in set (0.00 sec)
# 查询审计日志或者task_runs表,可以看到物化视图的FINISH_TIME时间和视图定义的差很大
mysql> select CREATE_TIME,FINISH_TIME,STATE FROM information_schema.task_runs WHERE DEFINITION like '%mv_tb1%' ;
+---------------------+---------------------+---------+
| CREATE_TIME | FINISH_TIME | STATE |
+---------------------+---------------------+---------+
| 2024-09-12 15:25:01 | 2024-09-12 15:25:27 | SUCCESS |
| 2024-09-11 15:25:01 | 2024-09-11 15:25:24 | SUCCESS |
+---------------------+---------------------+---------+
2 rows in set (0.01 sec)
是因为视图执行太慢了吗?