<div dir="ltr"><div><div><div>Thank you so much Alan for spending your time for writing these long mails,<br><br></div>your suggestion is awesome, after removing wildcard from the start I got huge performance improvement.<br></div>query time decreased from 34 seconds to 0.08 seconds.<br><br></div>also your tips for list.js also really helped me.<br><div><div><div><br><br><br><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>Regards,<br>Lajeesh<br></div></div>
<br><div class="gmail_quote">On Fri, Sep 25, 2015 at 9:42 PM, Alan Bell <span dir="ltr"><<a href="mailto:alan.bell@libertus.co.uk" target="_blank">alan.bell@libertus.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">finally, if you want your list views to be "starts with" queries rather than "contains" queries you can edit layouts/vlayout/modules/Vtiger/resources/List.js around line 1893<br>
and change from:<br>
var searchOperator = 'c';<br>
to:<br>
var searchOperator = 's';<br>
<br>
then it will use any indexes you have on those columns. This should probably be a configurable preference in the config.inc.php or something.<br>
<br>
Alan.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>