Indexing reason for the better perf of searching

This commit is contained in:
TannedCung 2024-12-05 15:04:13 +07:00
parent fe56fb91a4
commit d2e0c96ce2

View File

@ -23,7 +23,7 @@ class SubscriptionRequestFile(models.Model):
doc_type = models.CharField(max_length=10, default="") doc_type = models.CharField(max_length=10, default="")
index_in_request = models.IntegerField(default=0) # by doc_type index_in_request = models.IntegerField(default=0) # by doc_type
processing_time = models.FloatField(default=-1) # in milisecond 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) counter_measures = models.TextField(blank=True)
is_reviewed = models.BooleanField(default=False) is_reviewed = models.BooleanField(default=False)
is_required = models.BooleanField(default=True) is_required = models.BooleanField(default=True)