create db index on hot column

This commit is contained in:
frederik
2024-08-25 10:10:26 +02:00
parent b97554b533
commit 628a2bd713
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS detections (
Overlap FLOAT,
File_Name VARCHAR(100) NOT NULL);
CREATE INDEX "detections_Com_Name" ON "detections" ("Com_Name");
CREATE INDEX "detections_Sci_Name" ON "detections" ("Sci_Name");
CREATE INDEX "detections_Date_Time" ON "detections" ("Date" DESC, "Time" DESC);
EOF
chown $USER:$USER $HOME/BirdNET-Pi/scripts/birds.db