add indexes to improve the speed of calc.py

fixes #33
This commit is contained in:
2021-08-25 18:02:23 +02:00
parent 8e167a3577
commit 30c3f19d80
4 changed files with 42 additions and 0 deletions
+4
View File
@@ -44,3 +44,7 @@ class Transaction(models.Model):
class Meta:
db_table = "transaction"
indexes = [
models.Index(fields=['crypto_currency', 'owner', 'transaction_type',]),
]