add index on render job submission time for faster list generation

pull/60/head
Hartmut Holzgraefe 2021-07-29 14:21:15 +00:00
rodzic a0443fc82e
commit 59868058b2
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -128,6 +128,10 @@ class MapRenderingJob(models.Model):
nonce = models.CharField(max_length=NONCE_SIZE, blank=True)
class Meta:
indexes = [models.Index(fields=['submission_time',]),]
_files_prefix = None
objects = MapRenderingJobManager()