Skip to content

CV2-6729: N+1 query#2441

Merged
melsawy merged 1 commit into
developfrom
CV2-6729-n-1-query
Jul 13, 2026
Merged

CV2-6729: N+1 query#2441
melsawy merged 1 commit into
developfrom
CV2-6729-n-1-query

Conversation

@melsawy

@melsawy melsawy commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Description

Add a new method that accepts all edge nodes, groups them by annotation type, and loads each group with a single WHERE id IN (...) query. This reduces the number of database queries from one per node to one per annotation type,

References: CV2-6729

How to test?

Re-run unit tests

Checklist

  • I have performed a self-review of my code and ensured that it is safe and runnable, that code coverage has not decreased, and that there are no new Code Climate issues. I have also followed Meedan's internal coding guidelines.

@melsawy melsawy requested a review from caiosba July 12, 2026 19:05
@melsawy melsawy merged commit 578e797 into develop Jul 13, 2026
10 checks passed
@melsawy melsawy deleted the CV2-6729-n-1-query branch July 13, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants