feat: Optimize image hash checks with bulk queries and add database indexing for performance
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user