mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: public issue list endpoint n+1 (#2099)
This commit is contained in:
parent
4f0cac37db
commit
2ad46d7bfa
@ -2100,6 +2100,12 @@ class ProjectIssuesPublicEndpoint(BaseAPIView):
|
||||
queryset=IssueReaction.objects.select_related("actor"),
|
||||
)
|
||||
)
|
||||
.prefetch_related(
|
||||
Prefetch(
|
||||
"votes",
|
||||
queryset=IssueVote.objects.select_related("actor"),
|
||||
)
|
||||
)
|
||||
.filter(**filters)
|
||||
.annotate(cycle_id=F("issue_cycle__cycle_id"))
|
||||
.annotate(module_id=F("issue_module__module_id"))
|
||||
|
Loading…
Reference in New Issue
Block a user