DROP INDEX IF EXISTS resourceaddressid ON sched_eventresources;
CREATE INDEX IF NOT EXISTS dlb_perf_1 ON sched_eventresources (resourceaddressid, eventid);

DROP INDEX IF EXISTS resourceresourceid ON sched_eventresources;
CREATE INDEX IF NOT EXISTS dlb_perf_2 ON sched_eventresources (resourceresourceid, eventid);

DROP INDEX IF EXISTS recordflags ON sched_events;
CREATE INDEX IF NOT EXISTS dlb_perf_1 ON sched_events (recordflags, eventtype);
