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
+5
View File
@@ -152,5 +152,10 @@ if ! grep SF_THRESH /etc/birdnet/birdnet.conf &>/dev/null;then
fi
sudo chmod +x ~/BirdNET-Pi/scripts/install_language_label_nm.sh
sqlite3 $HOME/BirdNET-Pi/scripts/birds.db << EOF
CREATE INDEX IF NOT EXISTS "detections_Com_Name" ON "detections" ("Com_Name");
CREATE INDEX IF NOT EXISTS "detections_Date_Time" ON "detections" ("Date" DESC, "Time" DESC);
EOF
sudo systemctl daemon-reload
restart_services.sh