You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Ma77Ball (via GitHub)" <gi...@apache.org> on 2026/06/23 23:38:57 UTC

[I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Ma77Ball opened a new issue, #5920:
URL: https://github.com/apache/texera/issues/5920

   Follow-up from PR #5704 review.
   
   ### Problem
   Each workflow card calls `GET /{wid}/cover` individually (`WorkflowCoverService.getCover`), so a dashboard/hub page of N cards issues N separate requests, each a DB hit plus an access check. This will scale poorly on a busy dashboard.
   
   PR #5704 already fixed the per-card correctness issues (stale-cover flash and out-of-order resolution via `switchMap` + eager reset), but the fetch volume remains.
   
   ### Proposal
   Fold a `hasCover` flag (or the cover data itself) into the existing workflow-list/search payload so cards can either render directly or gate a lazy fetch, instead of every card fetching unconditionally on init.
   
   This touches the workflow-list/search query and response type, which is why it was deferred out of #5704.
   
   ### Context
   - Service: `frontend/src/app/dashboard/service/user/workflow-cover/workflow-cover.service.ts`
   - Consumer: `frontend/src/app/dashboard/component/user/list-item/card-item/card-item.component.ts`
   - Backend endpoint: `WorkflowResource.getCoverImage`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball closed issue #5920: Fold workflow cover into list/search payload to avoid per-card N+1 fetches
URL: https://github.com/apache/texera/issues/5920


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "xuang7 (via GitHub)" <gi...@apache.org>.
xuang7 closed issue #5920: Fold workflow cover into list/search payload to avoid per-card N+1 fetches
URL: https://github.com/apache/texera/issues/5920


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "VuMartin (via GitHub)" <gi...@apache.org>.
VuMartin commented on issue #5920:
URL: https://github.com/apache/texera/issues/5920#issuecomment-4901064280

   /take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball commented on issue #5920:
URL: https://github.com/apache/texera/issues/5920#issuecomment-4786008844

   Reopening: keeping the N+1 fetch-volume work as a separate follow-on PR rather than folding it into #5704.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5920:
URL: https://github.com/apache/texera/issues/5920#issuecomment-4784481755

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @Ma77Ball!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Fold workflow cover into list/search payload to avoid per-card N+1 fetches [texera]

Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball commented on issue #5920:
URL: https://github.com/apache/texera/issues/5920#issuecomment-4784568082

   Folding this into PR #5704 instead of tracking separately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org