Skip to content

Commit

Permalink
Merge pull request #2338 from StephanH90/feat/add-missing-indices
Browse files Browse the repository at this point in the history
feat(workflow): add indices to created_at and deadline of work item
  • Loading branch information
winged authored Dec 2, 2024
2 parents ed4f3cf + 8e7b8d7 commit 6c44a1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.15 on 2024-12-02 13:43

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('caluma_workflow', '0033_workitem_indexes'),
]

operations = [
migrations.AddIndex(
model_name='workitem',
index=models.Index(fields=['created_at'], name='caluma_work_created_c87fd3_idx'),
),
migrations.AddIndex(
model_name='workitem',
index=models.Index(fields=['deadline'], name='caluma_work_deadlin_3d2f3c_idx'),
),
]
2 changes: 2 additions & 0 deletions caluma/caluma_workflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ class Meta:
GinIndex(fields=["controlling_groups"]),
GinIndex(fields=["assigned_users"]),
GinIndex(fields=["meta"]),
models.Index(fields=["created_at"]),
models.Index(fields=["deadline"]),
]


Expand Down

0 comments on commit 6c44a1b

Please sign in to comment.