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
+4
View File
@@ -215,6 +215,10 @@ if ! [ -L $HOME/BirdNET-Pi/model/labels.txt ]; then
sudo_with_user install_language_label.sh
fi
sqlite3 $HOME/BirdNET-Pi/scripts/birds.db << EOF
CREATE INDEX IF NOT EXISTS "detections_Sci_Name" ON "detections" ("Sci_Name");
EOF
# update snippets above
systemctl daemon-reload