summaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-08 18:04:10 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-08 18:04:10 +0200
commit4a37d565bd2b3c5972c329cbb3e1d5f07206ff09 (patch)
treefe647c6e0644e535b60e8850fc6dfc2b81455f07 /db_structure.xml
parent0fe81d2f214c59dbe223e949232475fb8a6f24b9 (diff)
downloadnextcloud-server-4a37d565bd2b3c5972c329cbb3e1d5f07206ff09.tar.gz
nextcloud-server-4a37d565bd2b3c5972c329cbb3e1d5f07206ff09.zip
Add indexes to speedup DB queries
* file_target is often used in the sharing code in JOIN statements for retrieval of shares
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 05d8dfb132b..7769c64d87c 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -471,6 +471,14 @@
</field>
</index>
+ <index>
+ <name>gu_uid_index</name>
+ <field>
+ <name>uid</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
</declaration>
</table>
@@ -859,6 +867,13 @@
<sorting>ascending</sorting>
</field>
</index>
+ <index>
+ <name>share_file_target</name>
+ <field>
+ <name>file_target</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
</declaration>
</table>