Why is querying SVV_TABLE_INFO so slow?

1

SELECT * from SVV_TABLE_INFO where "table" = '<tablename>' limit 1; took 448.8s to execute.

Any ideas why or how I could debug this?

https://docs.aws.amazon.com/redshift/latest/dg/r_SVV_TABLE_INFO.html

已提问 2 年前927 查看次数
2 回答
1

i would start with understanding the workload on the cluster when you are trying to execute the query use the following query to see what running queries are currently active; select user_name, db_name, starttime, pid, replace(trim(query),'\n',' ') from stv_recents where status = 'Running' order by starttime;

已回答 2 年前
AWS
专家
已审核 2 年前
0

As mentioned in the other answer the best place to start is to monitor the cluster performance at the time you are experiencing issues. Aside from the query above, you could look at the different steps described in the documentation section dedicated to "Monitoring Amazon Redshift cluster performance".

hope this helps

AWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则