Skip to content

Commit

Permalink
Add btree index on history table (#345)
Browse files Browse the repository at this point in the history
This speeds up a whole bunch of our queries by a *lot* :)
  • Loading branch information
ellie authored Apr 26, 2022
1 parent b692e0c commit 4030de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions atuin-server/migrations/20220426080938_history-index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
create index concurrently if not exists "history_idx" on history using btree (user_id, timestamp);

0 comments on commit 4030de4

Please sign in to comment.