basic indexes

This commit is contained in:
Robin Appelman 2020-04-01 18:46:29 +02:00
commit a9c2032c2a

View file

@ -6,3 +6,9 @@ CREATE TABLE logs_raw (
ALTER TABLE ONLY logs_raw ALTER TABLE ONLY logs_raw
ALTER COLUMN time SET DEFAULT now(); ALTER COLUMN time SET DEFAULT now();
CREATE INDEX logs_raw_id_idx
ON logs_raw USING BTREE (id);
CREATE INDEX logs_raw_success_idx
ON logs_raw USING BTREE ((json->>'success'));