atuin/atuin-server/migrations/20220426080938_history-index.sql
Ellie Huxtable 4030de4bea
Add btree index on history table (#345)
This speeds up a whole bunch of our queries by a *lot* :)
2022-04-26 09:32:59 +01:00

1 line
99 B
SQL

create index concurrently if not exists "history_idx" on history using btree (user_id, timestamp);