mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-13 09:49:10 +01:00
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
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 New Issue
Block a user