<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font face="Arial" size="4">Hi All,</font><div><font face="Arial" size="4">did anybody has an overview about all select statement they are being used in owncloud?</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">I take a look on my MYSQL Server and it seems that they are no indexes on the tables!</font></div><div><font face="Arial" size="4"><br></font></div><div><span style="font-family: Arial; font-size: large; ">Example:</span></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">owncloud use the following command:</font></div><div><font face="Arial" size="4"><br></font></div><div><div><font face="Arial" size="4" color="#ff4013"><u>SELECT * FROM 'oc_properties' WHERE 'userid' = '<USERID>' AND 'propertypath' = '<PATH>'</u></font></div></div><div><br></div><div><font face="Arial" size="4">it takes up to 2 seconds to execute this command!</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">after I add: </font></div><div><font face="Arial" size="4"><u><br></u></font></div><div><font face="Arial" size="4" color="#e32400"><u>SELECT * FROM 'oc_properties' WHERE 'userid' = '<USERID>' AND 'propertypath' = '<PATH></u>'</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">it takes 0.2 seconds!</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">I think there are a lot of SQL Statements what can be done much faster if SQL indexes will be used!</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">Best Regards</font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4"><br></font></div><div><font face="Arial" size="4">Patrick Heller</font></div></body></html>