diff options
| -rw-r--r-- | generalresearch/thl_django/common/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generalresearch/thl_django/common/models.py b/generalresearch/thl_django/common/models.py index 6f8f813..968171f 100644 --- a/generalresearch/thl_django/common/models.py +++ b/generalresearch/thl_django/common/models.py @@ -363,6 +363,7 @@ class THLUser(models.Model): # models.Index(fields=["product_id", "product_user_id"]), models.Index(fields=["created"]), models.Index(fields=["last_seen"]), + models.Index(fields=["product_id", "-last_seen"]), models.Index( fields=["last_task_completed_at"], name="thl_user_last_task_comp_nn", |
