add indexes to improve the speed of calc.py

fixes #33
This commit is contained in:
timo_admin committed 2021-08-25 18:02:23 +02:00
1 parent 8e167a3577
commit 30c3f19d80
4 files changed
+42

No files matched your search

@@ -0,0 +1,17 @@
# Generated by Django 3.2.5 on 2021-08-25 15:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rates', '0001_initial'),
]
operations = [
migrations.AddIndex(
model_name='exchangerate',
index=models.Index(fields=['crypto_currency', 'fiat_currency', 'datetime_valid'], name='exchangerat_crypto__8e5f68_idx'),
),
]