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:
Martin Konecny 2012-10-22 17:29:26 -04:00
parent 5d3866ad51
commit 8b9b005708
2 changed files with 7 additions and 0 deletions

View file

@ -91,6 +91,8 @@
<index name="cc_files_name_idx">
<index-column name="name"/>
</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-column name="file_exists"/>
</index>
@ -332,6 +334,9 @@
<foreign-key foreignTable="cc_webstream" name="cc_show_stream_fkey" onDelete="CASCADE">
<reference local="stream_id" foreign="id"/>
</foreign-key>
<index name="cc_schedule_instance_id_idx">
<index-column name="instance_id"/>
</index>
</table>
<table name="cc_sess" phpName="CcSess">
<column name="sessid" phpName="Sessid" type="CHAR" size="32" primaryKey="true" required="true"/>