perf(db): add IsUnicode(false) on ASCII-only code/identifier columns
Added IsUnicode(false) to hostname, version, status, IP, hash, prefix, key, URL, timezone, theme, language, YOLO model name, and enum-based string columns. These columns only contain ASCII data — disabling Unicode improves PostgreSQL index efficiency and reduces storage. Excluded natural text columns (Address, DisplayName, Site.Name) that may contain Unicode characters like accented letters.
This commit is contained in:
1 parent
c36978d5a1
commit
b04d8a72c2
8 files changed
+52
-26
No files matched your search
+2
-1
@@ -14,7 +14,8 @@ public class CameraDetectionProfileConfiguration : IEntityTypeConfiguration<Came
|
||||
|
||||
builder.Property(p => p.YoloModel)
|
||||
.HasMaxLength(50)
|
||||
.HasDefaultValue("yolov8n");
|
||||
.HasDefaultValue("yolov8n")
|
||||
.IsUnicode(false);
|
||||
|
||||
builder.Property(p => p.MinConfidence)
|
||||
.HasDefaultValue(0.4);
|
||||
|
||||
Reference in new issue
Block a user