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년 전926회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠