aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2022-04-26 09:32:59 +0100
committerGitHub <noreply@github.com>2022-04-26 09:32:59 +0100
commit4030de4bea0f3b2d4e9a9f9d581fe2657b61eac1 (patch)
tree058b7210999212d03fdcddf291a7ffc6b2092e80
parentBump tower-http from 0.2.5 to 0.3.0 (#343) (diff)
downloadatuin-4030de4bea0f3b2d4e9a9f9d581fe2657b61eac1.zip
Add btree index on history table (#345)
This speeds up a whole bunch of our queries by a *lot* :)
-rw-r--r--atuin-server/migrations/20220426080938_history-index.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/atuin-server/migrations/20220426080938_history-index.sql b/atuin-server/migrations/20220426080938_history-index.sql
new file mode 100644
index 00000000..2d2a5633
--- /dev/null
+++ b/atuin-server/migrations/20220426080938_history-index.sql
@@ -0,0 +1 @@
+create index concurrently if not exists "history_idx" on history using btree (user_id, timestamp);