Merge pull request #5814 from owncloud/add-indexes

Add some more indexes to tables to improve db queries
This commit is contained in:
Frank Karlitschek 2013-11-15 01:25:59 -08:00
commit 54364f172e

View file

@ -852,6 +852,24 @@
<length>1</length>
</field>
<index>
<name>item_share_type_index</name>
<field>
<name>item_type</name>
<sorting>ascending</sorting>
</field>
<field>
<name>share_type</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>file_source_index</name>
<field>
<name>file_source</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>token_index</name>
<field>
@ -1073,6 +1091,18 @@
</field>
</index>
<index>
<name>vcategory_objectd_index</name>
<field>
<name>objid</name>
<sorting>ascending</sorting>
</field>
<field>
<name>type</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>