(chore): add more database improvements

This commit is contained in:
Eduard Tolosa 2025-07-26 22:24:16 -05:00
parent 2afe4b3aba
commit 88cbb3cc9b

View file

@ -18,6 +18,8 @@ function __based_init_db
CREATE INDEX IF NOT EXISTS idx_log_cmd ON log(cmd);
CREATE INDEX IF NOT EXISTS idx_log_path_ts ON log(path, ts);
CREATE INDEX IF NOT EXISTS idx_log_path_cmd ON log(path, cmd);
CREATE INDEX IF NOT EXISTS idx_log_counter_ts ON log(counter DESC, ts DESC);
CREATE INDEX IF NOT EXISTS idx_log_cmd_like ON log(cmd COLLATE NOCASE);
"
echo "Based initialized. You can also import your fish history with 'based import'."