feat: Optimize image hash checks with bulk queries and add database indexing for performance

This commit is contained in:
Ross
2026-05-11 12:07:55 +01:00
parent e55a3bf36a
commit 2b9f3e3b68
6 changed files with 85 additions and 28 deletions
+1 -1
View File
@@ -2173,7 +2173,7 @@ class UncategorisedDicom(models.Model):
series_instance_uid = models.CharField(max_length=255, blank=True, null=True)
image_blake3_hash = models.CharField(max_length=64, null=True, blank=True)
image_blake3_hash = models.CharField(max_length=64, null=True, blank=True, db_index=True)
created_date = models.DateTimeField(default=timezone.now)