Skip to content

Fix N+1 Query#108

Merged
skyeslattery merged 7 commits intoreleasefrom
master
Aug 30, 2025
Merged

Fix N+1 Query#108
skyeslattery merged 7 commits intoreleasefrom
master

Conversation

@skyeslattery
Copy link
Contributor

Overview

Fix N+1 Query issue, hopefully reducing CPU usage

Changes Made

Tested locally - amount of queries pre-fix and post-fix

Test Coverage

Queries reduced from 2k+ to ~5 on GET /eatery/ requests
Queries do have lots of parameters, something to be aware of?

@skyeslattery skyeslattery requested review from Aayush-Agnihotri, MrPeterss and akmatchev and removed request for Aayush-Agnihotri August 29, 2025 20:02
Copy link

@akmatchev akmatchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@MrPeterss MrPeterss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Looks good.

@skyeslattery skyeslattery merged commit 96d8df9 into release Aug 30, 2025
4 checks passed
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.

3 participants