Clean up points queries
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reading the query code in AwardedPoint, AvailablePoint, and User, then inspect the existing tests for those models. Map the redundant queries and identify the reported N+1 cases before deciding whether a helper class is warranted. Done means the queries are simpler, comments explain the non-obvious parts, N+1 behavior is reduced, and tests cover the revised behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
There are a bunch of complex queries in AwardedPoint, AvailablePoint and User. with some redundancy. Clean it up, add comments, maybe refactor them to some helper class. Reduce N+1 problems. Also improve tests.
- Ngôn ngữ chính
- Ruby
- Star
- 51
- Fork
- 42
- Merge trung bình
- 1 giờ 27 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của testmycode/tmc-server
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#590 ·
-
Exercise Submission Failed Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
testmycode/tmc-server#576 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#488 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#487 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#477 · 2 bình luận ·
Tất cả issue của testmycode/tmc-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Please Drop ruby 3.2 support Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
googleapis/google-api-ruby-client#28001 · 5 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100