Optimize retrieving personal and resource access tokens for Credentials inventory index page and API endpoints
&18720 (closed) reports about issues with
- rendering Credentials / Personal access tokens and Credentials / Project and group access tokens tabs
-
GET /groups/:id/manage/personal_access_tokensandGET /groups/:id/manage/resource_access_tokensAPI endpoints requests
for large groups. The root cause of those issues is performance of SQL queries that retrieve personal and resource access tokens for those pages and API endpoints.
-
If possible, amend existing PersonalAccessTokensFinder(otherwise create newAuthn::CredentialsInventory::PersonalAccessTokensFinderfinder) to allow filtering by newpersonal_access_tokens.group_idandpersonal_access_tokens.user_typecolumns. -
Create new queries by using the finder and new columns to replace problematic queries with a FF for -
Optimize INqueries, see !201312 (comment 2757654224)
Edited by Bogdan Denkovych