acm-uiowa / acm-uiowa/uigrades

Refactor: Database functions and Course querying functions

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
4
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
mongodb, typescript
Lĩnh vực
databases, performance
Loại issue
Tái cấu trúc
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
43/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.