mirror of
https://github.com/edu4rdshl/based.fish.git
synced 2026-07-17 23:24:46 +00:00
(chore): add more database improvements
This commit is contained in:
parent
2afe4b3aba
commit
88cbb3cc9b
1 changed files with 2 additions and 0 deletions
|
|
@ -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_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_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_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'."
|
echo "Based initialized. You can also import your fish history with 'based import'."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue