Add indexes to speedup DB queries

* file_target is often used in the sharing code in JOIN statements for retrieval of shares
This commit is contained in:
Morris Jobke 2015-07-08 18:04:10 +02:00
parent 0fe81d2f21
commit 4a37d565bd
2 changed files with 16 additions and 1 deletions

View File

@ -471,6 +471,14 @@
</field> </field>
</index> </index>
<index>
<name>gu_uid_index</name>
<field>
<name>uid</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration> </declaration>
</table> </table>
@ -859,6 +867,13 @@
<sorting>ascending</sorting> <sorting>ascending</sorting>
</field> </field>
</index> </index>
<index>
<name>share_file_target</name>
<field>
<name>file_target</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration> </declaration>
</table> </table>

View File

@ -22,7 +22,7 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades // We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel // between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number. // when updating major/minor version number.
$OC_Version=array(8, 2, 0, 0); $OC_Version=array(8, 2, 0, 1);
// The human readable string // The human readable string
$OC_VersionString='8.2 pre alpha'; $OC_VersionString='8.2 pre alpha';