Added indexes for Transaction, Alias and Profile
This commit is contained in:
parent
77551162d5
commit
c8f5451ea4
3 changed files with 10 additions and 0 deletions
|
|
@ -119,6 +119,11 @@ class Transaction(PolymorphicModel):
|
|||
class Meta:
|
||||
verbose_name = _("transaction")
|
||||
verbose_name_plural = _("transactions")
|
||||
indexes = [
|
||||
models.Index(fields=['created_at']),
|
||||
models.Index(fields=['source']),
|
||||
models.Index(fields=['destination']),
|
||||
]
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue