CC-4612: Create index for cc_schedule during upgrade to improve the performance when cc_schedule's getting bigger
- also create one during fresh install
This commit is contained in:
parent
5d3866ad51
commit
8b9b005708
2 changed files with 7 additions and 0 deletions
|
@ -91,6 +91,8 @@
|
||||||
<index name="cc_files_name_idx">
|
<index name="cc_files_name_idx">
|
||||||
<index-column name="name"/>
|
<index-column name="name"/>
|
||||||
</index>
|
</index>
|
||||||
|
<!-- Doesn't make sense to have an index on a set with Cardinality of 2 {true, false}. Should
|
||||||
|
remove this for 2.3 -MK -->
|
||||||
<index name="cc_files_file_exists_idx">
|
<index name="cc_files_file_exists_idx">
|
||||||
<index-column name="file_exists"/>
|
<index-column name="file_exists"/>
|
||||||
</index>
|
</index>
|
||||||
|
@ -332,6 +334,9 @@
|
||||||
<foreign-key foreignTable="cc_webstream" name="cc_show_stream_fkey" onDelete="CASCADE">
|
<foreign-key foreignTable="cc_webstream" name="cc_show_stream_fkey" onDelete="CASCADE">
|
||||||
<reference local="stream_id" foreign="id"/>
|
<reference local="stream_id" foreign="id"/>
|
||||||
</foreign-key>
|
</foreign-key>
|
||||||
|
<index name="cc_schedule_instance_id_idx">
|
||||||
|
<index-column name="instance_id"/>
|
||||||
|
</index>
|
||||||
</table>
|
</table>
|
||||||
<table name="cc_sess" phpName="CcSess">
|
<table name="cc_sess" phpName="CcSess">
|
||||||
<column name="sessid" phpName="Sessid" type="CHAR" size="32" primaryKey="true" required="true"/>
|
<column name="sessid" phpName="Sessid" type="CHAR" size="32" primaryKey="true" required="true"/>
|
||||||
|
|
|
@ -429,6 +429,8 @@ COMMENT ON TABLE "cc_schedule" IS '';
|
||||||
|
|
||||||
|
|
||||||
SET search_path TO public;
|
SET search_path TO public;
|
||||||
|
CREATE INDEX "cc_schedule_instance_id_idx" ON "cc_schedule" ("instance_id");
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- cc_sess
|
-- cc_sess
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue