Commit 0754cfe9c9e7a3fc9d6d084743edf5a5eaf34ddc

Authored by Sergey Matvienko
1 parent dd9257f6

fixed merge for schema-entities-idx.sql

... ... @@ -35,4 +35,4 @@ CREATE INDEX IF NOT EXISTS idx_event_tenant_entity_type_entity_event_type_create
35 35 WITH (FILLFACTOR=95);
36 36
37 37 COMMENT ON INDEX public.idx_event_tenant_entity_type_entity_event_type_created_time_des
38   - IS 'This index helps to open latest events on UI fast';
\ No newline at end of file
  38 + IS 'This index helps to open latest events on UI fast';
... ...
... ... @@ -45,19 +45,3 @@ CREATE INDEX IF NOT EXISTS idx_attribute_kv_by_key_and_last_update_ts ON attribu
45 45 CREATE INDEX IF NOT EXISTS idx_audit_log_tenant_id_and_created_time ON audit_log(tenant_id, created_time);
46 46
47 47 CREATE INDEX IF NOT EXISTS idx_rpc_tenant_id_device_id ON rpc(tenant_id, device_id);
48   -
49   -CREATE INDEX IF NOT EXISTS idx_event_ts
50   - ON public.event USING btree
51   - (ts DESC NULLS LAST)
52   - WITH (FILLFACTOR=95);
53   -
54   -COMMENT ON INDEX public.idx_event_ts
55   - IS 'This index helps to delete events by TTL using timestamp';
56   -
57   -CREATE INDEX IF NOT EXISTS idx_event_tenant_entity_type_entity_event_type_created_time_des
58   - ON public.event USING btree
59   - (tenant_id ASC NULLS LAST, entity_type ASC NULLS LAST, entity_id ASC NULLS LAST, event_type ASC NULLS LAST, created_time DESC NULLS LAST)
60   - WITH (FILLFACTOR=95);
61   -
62   -COMMENT ON INDEX public.idx_event_tenant_entity_type_entity_event_type_created_time_des
63   - IS 'This index helps to open latest events on UI fast';
\ No newline at end of file
... ...