Use index scan on pg_resgroupcapability for resource group
We used to use sequence scan on pg_resgroupcapability for functions that need to do a full scan of pg_resgroupcapability. Problem is accessing in this way will take a long time after pg_resgroupcapability table was updated/deleted million times as our stress tests do, pg_resgroupcapability was filled of invalid blocks and sequence scan wasted lots of time to bypass those blocks. Using index scan on it can resolve this problem.
Showing
想要评论请 注册 或 登录