On tente un truc avec un index

This commit is contained in:
Jean-Marie Favreau 2025-02-02 20:18:12 +01:00
parent 9b4f10c1c0
commit bc09f4b50c
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.9 on 2025-02-02 20:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agenda_culturel', '0143_fb_nopause'),
]
operations = [
migrations.AddIndex(
model_name='event',
index=models.Index(fields=['recurrences'], name='agenda_cult_recurre_5c5094_idx'),
),
]

View File

@ -852,6 +852,7 @@ class Event(models.Model):
models.Index(fields=["start_day", "start_time"]),
models.Index(fields=["end_day", "end_time"]),
models.Index(fields=["status"]),
models.Index(fields=["recurrences"]),
models.Index(fields=["recurrence_dtstart", "recurrence_dtend"]),
models.Index("start_time", Lower("title"), name="start_time title"),
models.Index("start_time", "start_day", "end_day", "end_time", Lower("title"), name="datetimes title")