Files
offline-db/fix_badges.py
6e2f5d30e2 ⚡ Bolt: [performance improvement] fix N+1 query in check_badges loop (#347)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Senpai-YoloBot <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-19 21:10:44 +00:00

6 lines
247 B
Python

with open("users/badge_system.py", "r") as f:
content = f.read()
# Replace .objects calls with cache references to reduce the query count significantly
# Wait, actually, let me review badge_system.py to identify exactly what I need to patch.