From bb012da03dddc19cd2312dfd5ff8b56c773e1d18 Mon Sep 17 00:00:00 2001 From: Jackson Maxfield Brown Date: Tue, 8 Mar 2022 20:46:55 -0800 Subject: [PATCH] feature/add-matter-ref-person-ref-vote-index (#173) * Add matter_ref and person_ref comp vote index * Add the other order indexes --- cdp_backend/database/models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cdp_backend/database/models.py b/cdp_backend/database/models.py index 8e7807f1..37923263 100644 --- a/cdp_backend/database/models.py +++ b/cdp_backend/database/models.py @@ -742,6 +742,24 @@ def Example(cls) -> Model: IndexedField(name="person_ref", order=Order.ASCENDING), ) ), + IndexedFieldSet( + ( + IndexedField(name="matter_ref", order=Order.ASCENDING), + IndexedField(name="person_ref", order=Order.ASCENDING), + ) + ), + IndexedFieldSet( + ( + IndexedField(name="person_ref", order=Order.ASCENDING), + IndexedField(name="event_ref", order=Order.ASCENDING), + ) + ), + IndexedFieldSet( + ( + IndexedField(name="person_ref", order=Order.ASCENDING), + IndexedField(name="matter_ref", order=Order.ASCENDING), + ) + ), )