issue #521 - DB speed improvements

This commit is contained in:
ehpersonal38
2023-02-10 14:40:39 -05:00
parent 0736831554
commit df880bc907
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@ CREATE TABLE IF NOT EXISTS detections (
Sens FLOAT,
Overlap FLOAT,
File_Name VARCHAR(100) NOT NULL);
CREATE INDEX "detections_Com_Name" ON "detections" ("Com_Name");
CREATE INDEX "detections_Date_Time" ON "detections" ("Date" DESC, "Time" DESC);
EOF
chown $USER:$USER $HOME/BirdNET-Pi/scripts/birds.db
chmod g+w $HOME/BirdNET-Pi/scripts/birds.db