dev add indexes
Test Workflow / test (push) Successful in 5s

This commit is contained in:
vladp
2026-01-26 11:41:21 +07:00
parent 89f83054ef
commit 3e5eef3b42
2 changed files with 5 additions and 3 deletions
@@ -9,7 +9,11 @@ import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Entity
@Table(name = "image_hashes")
@Table(name = "image_hashes", indexes = {
@Index(name = "idx_image_hashes_hash64", columnList = "hash64_hi, hash64_lo"),
@Index(name = "idx_image_hashes_hash64_hi", columnList = "hash64_hi"),
@Index(name = "idx_image_hashes_hash64_lo", columnList = "hash64_lo")
})
@Data
@NoArgsConstructor
@AllArgsConstructor
@@ -1,2 +0,0 @@
CREATE INDEX idx_image_hash_prefix
ON image_hashes ((hash_value >> 48));