dataall icon indicating copy to clipboard operation
dataall copied to clipboard

Consumer roles list page is very slow

Open voidwisp opened this issue 1 year ago • 2 comments

We have about 15 total IAM roles on a single environment, 9 of them are data.all managed. The list loads very slowly about 13 seconds or so. I would like the roles to load much faster maybe 2-3 seconds tops and ideally less.

voidwisp avatar Aug 06 '24 11:08 voidwisp

Thanks for raising this concern @zsaltys - I believe @SofiaSazonova had worked on a similar issue where fetching the managed policy status for many consumption roles when requesting share access (PR)

I would think we can re-use a similar approach where we load all of the role information besides this additional fields which is resolved via boto3 call and likely causing the long runtime

That information can be run afterwards via separate API call or on displayed on demand via some mechanism

Please let us know if there is any particular expected behavior(s) you had in mind other than faster runtimes?

noah-paige avatar Aug 12 '24 01:08 noah-paige

@noah-paige I would say we should check if role has policy attached async in background ECS jobs and allow user to refresh a status if they need to.. Another option is to load it asynchronously from the list. Meaning we render the consumer roles list FIRST ... and then we show spinning circle that we're pulling information to figure out if the policy is attached.. I think maybe the second option would be my preferred one as it's going to show the truth just a bit slower...

voidwisp avatar Aug 16 '24 11:08 voidwisp