feat(src): cache branding lookup and improve leaderboard performance
Prevent DB hits by caching site branding and refactor leaderboard query using annotate
This commit is contained in:
4 files changed
+129
-70
No files matched your search
@@ -4,15 +4,16 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('epics', '0001_initial'),
|
||||
('projects', '0002_projectmember_project_mem_user_id_6b0bb0_idx'),
|
||||
("epics", "0001_initial"),
|
||||
("projects", "0002_projectmember_project_mem_user_id_6b0bb0_idx"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name='epic',
|
||||
index=models.Index(fields=['project', 'sort_order'], name='epics_project_eeb4de_idx'),
|
||||
model_name="epic",
|
||||
index=models.Index(
|
||||
fields=["project", "sort_order"], name="epics_project_eeb4de_idx"
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user