<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Lee, <br><br>On Sun, Nov 24, 2013 at 10:24 PM, Lee Hachadoorian <span dir="ltr"><<a href="mailto:Lee.Hachadoorian+L@gmail.com" target="_blank">Lee.Hachadoorian+L@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I find the DB Manager SQL window to be unusable, and have confirmed that it is because of syntax highlighting [...]. <br>

</blockquote><div> [...]</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

This is correct in that QGIS does not completely stop responding, but the latency is so high as to make the dialog unusable for anything other than pasting in an already tested query. </blockquote><div><br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin:0px;text-indent:0px">A very long query (>100.000 chars) takes a long time (>10 secs) to be parsed... linearly.<br></p> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Try, for example, typing `SELECT 1;` into the window, and see how long it takes you. </blockquote><div><br></div><div>It highlights it quite immediately, I'm unable to see any latency.<br></div><div>How many time does it take to run on your system?<br>

</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
At the moment, I have altered my local version by commenting out lines 34 and 56 of /usr/share/qgis/python/plugins/db_manager/dlg_sql_window.py. I would like to suggest that until some time can be invested in making the syntax highlighting functionality usable (if there is even interest in doing so for a feature that is just eye candy), that this change be <br>

</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>tested and incorporated in the official version.<br></div></blockquote><div>

<br></div><div>The syntax highlighting is already usable as it is, nobody else is experiencing any issue with it... Surely it can be improved, but definitely it's not just eye candy, as it helps in writing queries. <br>

<br>We may add a check to skip syntax highlighting when the query is very long, but it won't help in your case.<br>It's better to add a way to disable it when not needed or whether it cause any trouble.<br></div>
<br>
</div><div class="gmail_quote">Regards.<br>Giuseppe.<br></div><div class="gmail_quote"> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
--Lee<span class=""><font color="#888888"><br>
<br>
<br>
-- <br>
Lee Hachadoorian<br>
Assistant Professor in Geography, Dartmouth College<br>
<a href="http://freecity.commons.gc.cuny.edu" target="_blank">http://freecity.commons.gc.<u></u>cuny.edu</a><br>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</font></span></div></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli
</div></div>