Add index for interactive search (#493)

This commit is contained in:
CosmicHorror 2022-09-10 05:21:05 -05:00 committed by GitHub
parent 474170fd90
commit 8478a598db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,6 @@
-- Interactive search filters by command then by the max(timestamp) for that
-- command. Create an index that covers those
create index if not exists idx_history_command_timestamp on history(
command,
timestamp
);