From b7b849a48f71848c6c7ea447cfbb60d89d0b3162 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 22 Oct 2012 15:35:01 -0400 Subject: [PATCH] CC-4612: Create index for cc_schedule during upgrade to improve the performance when cc_schedule's getting bigger - fixed --- install_minimal/upgrades/airtime-2.2.0/data/upgrade.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_minimal/upgrades/airtime-2.2.0/data/upgrade.sql b/install_minimal/upgrades/airtime-2.2.0/data/upgrade.sql index 36b4f5734..771c3b13c 100644 --- a/install_minimal/upgrades/airtime-2.2.0/data/upgrade.sql +++ b/install_minimal/upgrades/airtime-2.2.0/data/upgrade.sql @@ -140,6 +140,12 @@ ALTER TABLE cc_playlistcontents ALTER TABLE cc_schedule ADD COLUMN stream_id integer; +CREATE INDEX cc_schedule_instance_id_idx + ON cc_schedule + USING btree + (instance_id); + + ALTER TABLE cc_subjs ADD COLUMN cell_phone character varying(255);