acm-uiowa / acm-uiowa/uigrades
Refactor: Database functions and Course querying functions
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
The choice of database when creating the rework was MongoDB, as it supported free usage limits well above what is required for UIGrades data; however, course queries go to the database on every filter change and search change (on the `/courses` route at uigrades.vercel.app/vourses). Research whether pulling all courses, memoizing them, and running filtering functions on the repository side is quicker (or not) than making requests to MongoDB on every query change. This issue isn't very high priority since there aren't that many items in the database, so queries to MongoDB are relatively quick.
Contributor guide
No contributing guide indexed for this repository
Research direction
Identify where the `/courses` (shown as `/vourses`) page triggers filter/search updates and where each event calls MongoDB. Trace those query functions and measure current request frequency/latency. Then compare with a path that memoizes loaded courses and applies repository-side filtering, using any existing benchmarking or logs. Done means a clear recommendation or proof-of-concept plan with measured results before refactoring.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, typescript
- Domain
- databases, performance
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 43/100