This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry.

Project Overview

The project is a full-stack web application built using Node.js, Express, and MongoDB. It provides REST APIs for managing user data and resources.

While testing the application, I noticed that one API endpoint became significantly slower as the database size increased. The issue was caused by unnecessary database queries being executed inside a loop.

Bug Fix or Performance Improvement