<#385 [Improvement] Too many workflows initially l...
# flyte-github
a
#385 [Improvement] Too many workflows initially loaded when person opens Workflows tab Issue created by anrusina Motivation Update: this ticket will need to be part of a broader refactor #385 Currently when person opens Workflow tab we immediately are requesting all workflows with the limit of 10000, and then to show
Last 10 executions
on each of returned workflow we perform executions call

Screen Shot 2022-04-13 at 3 32 42 PM▾

It leads to a lot of redundant calls, information from which user most probably won't even see. Solution Request paginated workflow items for example by using:
useWorkflowNameList
from
src/components/hooks/useNamedEntity.ts
, which already have limit set to
Copy code
limits.DEFAULT === 25
Load more items when user have already scrolled through have of the list. flyteorg/flyteconsole