<div dir="ltr">Hello Alan,<br>this is the result when I do the explain to the query<br><div><br></div><div><br></div><div>Explain query: <a href="https://prnt.sc/z8mn7y">https://prnt.sc/z8mn7y</a></div><div><br></div><div><img src="cid:ii_kl2jfns00" alt="image.png" width="472" height="199"><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 12 feb 2021 a las 3:33, Alan Lord (<<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/02/2021 22:54, Rubén A. Estrada Orozco wrote:<br>
> Maybe using the "EXPLAIN" mysql function to see what indexes are being <br>
> used, then trying to modify the query accordingly and/or add indexes to <br>
> your database.<br>
<br>
This is correct IMHO. Use EXPLAIN to see why the query is taking so <br>
long. Also you could try enabling the slow query log in mysql.<br>
<br>
You are probably missing an index somewhere.<br>
<br>
HTH<br>
<br>
Al<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div>---------------------------------------------------------------</div><div>Henry C.</div><div>Tel.: 956727976</div></div></div></div></div></div></div></div></div></div></div></div></div>