From d2e0c96ce2a3d189ff2e3907fa2cf7fbaff1dd64 Mon Sep 17 00:00:00 2001 From: TannedCung Date: Thu, 5 Dec 2024 15:04:13 +0700 Subject: [PATCH] Indexing reason for the better perf of searching --- cope2n-api/fwd_api/models/SubscriptionRequestFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cope2n-api/fwd_api/models/SubscriptionRequestFile.py b/cope2n-api/fwd_api/models/SubscriptionRequestFile.py index 1dce06d..89c5e31 100755 --- a/cope2n-api/fwd_api/models/SubscriptionRequestFile.py +++ b/cope2n-api/fwd_api/models/SubscriptionRequestFile.py @@ -23,7 +23,7 @@ class SubscriptionRequestFile(models.Model): doc_type = models.CharField(max_length=10, default="") index_in_request = models.IntegerField(default=0) # by doc_type processing_time = models.FloatField(default=-1) # in milisecond - reason = models.TextField(blank=True) + reason = models.TextField(blank=True, db_index=True) counter_measures = models.TextField(blank=True) is_reviewed = models.BooleanField(default=False) is_required = models.BooleanField(default=True)