You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Resume analyzer can be very slow due to N+1 DB queries per missing skill #252
Where: backend/controllers/resumeAnalyzer.controller.js
Problem: For each missing skill, it runs Course.find(...) separately (up to 8 skills). This is up to 8 sequential queries.
Impact: Latency spikes; timeouts under load.
Fix steps
Replace per-skill loop with a single query using $or of regexes for all missing skills (or use $in with normalized tokens where possible).
Post-process returned courses by best matching skill.
Add a hard cap on missingTop (already slice(0,8), keep it).
Activity
Aditya8369 commentedon Jun 1, 2026
@omkarhole please assign me this