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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ