diff options
Diffstat (limited to 'crates/atuin-client/migrations/20220806155627_interactive_search_index.sql')
-rw-r--r-- | crates/atuin-client/migrations/20220806155627_interactive_search_index.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/atuin-client/migrations/20220806155627_interactive_search_index.sql b/crates/atuin-client/migrations/20220806155627_interactive_search_index.sql new file mode 100644 index 00000000..b5770e62 --- /dev/null +++ b/crates/atuin-client/migrations/20220806155627_interactive_search_index.sql @@ -0,0 +1,6 @@ +-- Interactive search filters by command then by the max(timestamp) for that +-- command. Create an index that covers those +create index if not exists idx_history_command_timestamp on history( + command, + timestamp +); |