The populate cap multiplies with locales on locale=all and fallback reads

Đang mở
#3,284 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
backend

Hướng nghiên cứu

Read QueryScope.cs:105-113 and LocaleFallbackReader.cs:160-184 to trace how each engine call gets its populate count and how locale and fallback reads run. Then inspect the request path that creates these scopes and the existing populate limit tests. Done means a locale=all read with populate stays within MaxPopulatedEntries across all locale and fallback reads.

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

Mô tả

area:content performance type:bug

Problem

Each engine call gets a fresh QueryScope and populate count (QueryScope.cs:105-113). LocaleFallbackReader.ReadAllAsync runs one query per locale and ApplyAsync one per fallback locale (LocaleFallbackReader.cs:160-184), so a request with ten locales can populate about ten times MaxPopulatedEntries.

Proposal

Share one populate budget across the locale and fallback reads of a request.

Acceptance

  • A locale=all read with populate stays within MaxPopulatedEntries in total

Found in the code review of 17 Nov 2026 (P5).

Ngôn ngữ chính
C#
Star
569
Fork
107
Merge trung bình
2 giờ 49 phút
Pull request đã merge (30 ngày)
397

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

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.