瀏覽代碼

schema: add indexes to topos Mysql tables (#13)

* topos: update topos_d.xml

To optimize DB query speedup I propose to add few indexes.

*  topos: update topos_t.xml 

To optimize DB query speedup I propose to add few indexes.
sergey-vb 7 年之前
父節點
當前提交
66718c2a77
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. 10 0
      src/lib/srdb1/schema/topos_d.xml
  2. 10 0
      src/lib/srdb1/schema/topos_t.xml

+ 10 - 0
src/lib/srdb1/schema/topos_d.xml

@@ -225,4 +225,14 @@
         <colref linkend="a_callid"/>
     </index>
 
+    <index>
+        <name>a_uuid_idx</name>
+        <colref linkend="a_uuid"/>
+    </index>
+
+    <index>
+        <name>b_uuid_idx</name>
+        <colref linkend="b_uuid"/>
+    </index>
+
 </table>

+ 10 - 0
src/lib/srdb1/schema/topos_t.xml

@@ -232,4 +232,14 @@
         <colref linkend="a_callid"/>
     </index>
 
+    <index>
+        <name>x_vbranch_idx</name>
+        <colref linkend="x_vbranch"/>
+    </index>
+
+    <index>
+        <name>a_uuid_idx</name>
+        <colref linkend="a_uuid"/>
+    </index>
+
 </table>