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
@@ -298,7 +298,7 @@ class SeriesImageBase(models.Model):
# The second is a blake3 hash of the direct pixel data
# This is much faster when using pydicom
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)
is_dicom = models.BooleanField(default=False)