aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosmicHorror <LovecraftianHorror@pm.me>2022-09-10 05:21:05 -0500
committerGitHub <noreply@github.com>2022-09-10 11:21:05 +0100
commit8478a598db2ff99cc4699cf4d3872ea720ff159c (patch)
treea370d794050b11fa12149f9833f390bfc985a0f5
parenthide errors for #516 (#518) (diff)
downloadatuin-8478a598db2ff99cc4699cf4d3872ea720ff159c.zip
Add index for interactive search (#493)
-rw-r--r--atuin-client/migrations/20220806155627_interactive_search_index.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/atuin-client/migrations/20220806155627_interactive_search_index.sql b/atuin-client/migrations/20220806155627_interactive_search_index.sql
new file mode 100644
index 00000000..b5770e62
--- /dev/null
+++ b/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
+);