OWASP / OWASP/Nest

Optimize `issues` field in `RepositoryNode`

Open
#3,660 7 comments 0 reactions 1 assignee Assigned to @Utkarsh-0304 View on GitHub
backend backend-tests enhancement
Dominant language
Python
Stars
451
Forks
707
Avg merge
22h 59m
Merged PRs (30d)
91

Description

**Is your feature request related to a problem? Please describe.**
When querying the issues field, we get N+1 queries.

Image

**Describe the solution you'd like**
The current optimization hint is not enough for optimizing the query. We should use Prefetch instead.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Are you going to work on implementing this?**

- [ ] Yes
- [x] No

**Additional context**
https://strawberry.rocks/docs/django/guide/optimizer#optimization-hints

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.