Add btree index on history table (#345)
This speeds up a whole bunch of our queries by a *lot* :)
This commit is contained in:
parent
b692e0cee0
commit
4030de4bea
1 changed files with 1 additions and 0 deletions
1
atuin-server/migrations/20220426080938_history-index.sql
Normal file
1
atuin-server/migrations/20220426080938_history-index.sql
Normal file
|
@ -0,0 +1 @@
|
|||
create index concurrently if not exists "history_idx" on history using btree (user_id, timestamp);
|
Loading…
Reference in a new issue