Skip to content

Perf: Replace N+1 queries with optimized WHERE IN - #3712

Open
Koc wants to merge 3 commits into
mainfrom
feature/optimize-where-in-queries
Open

Koc wants to merge 3 commits into
mainfrom
feature/optimize-where-in-queries

Conversation

@Koc

@Koc Koc commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

There are plenty of duplicated queries in ApiController::exportSubmissionsToCloud and ApiController::getSubmissions endpoints. Let's try to optimize that:

🖼️ Screenshots

image
Before After After with cache
image image image
image image image

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

@Koc
Koc force-pushed the feature/optimize-where-in-queries branch from 546fec9 to 4f366e3 Compare September 28, 2026 10:03
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc
Koc force-pushed the feature/optimize-where-in-queries branch from 4f366e3 to 247b9da Compare September 28, 2026 10:26
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.15789% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/Db/OptionMapper.php 0.00% 11 Missing ⚠️
lib/Db/AnswerMapper.php 0.00% 10 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc
Koc force-pushed the feature/optimize-where-in-queries branch from 0856ec8 to 226c538 Compare September 28, 2026 12:07
@Koc
Koc marked this pull request as ready for review September 28, 2026 12:08
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc
Koc force-pushed the feature/optimize-where-in-queries branch from 2b6afa3 to 8cfb3df Compare September 28, 2026 13:55
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.

1 participant