<div dir="ltr">I can't confirm... <div><br></div><div>"<span style="font-family:arial,sans-serif;font-size:12.666666984558105px">Try, for example, typing `SELECT 1;` into the window, and see how long it takes you"</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">I can't repeat the problems doing this... can you post a better test case?</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">Luigi Pirelli (<a href="mailto:luigi.pirelli@faunalia.it">luigi.pirelli@faunalia.it</a>)</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 November 2013 22:24, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I find the DB Manager SQL window to be unusable, and have confirmed that it is because of syntax highlighting by disabling this feature in my installation. There is an issue already in the tracker <a href="https://hub.qgis.org/issues/6995" target="_blank">https://hub.qgis.org/issues/<u></u>6995</a> entitled "db manager's SQL window freezes with long query (due to syntax coloring?)". Giuseppe suggests:<br>
<br>
> Pasting or editing such a query makes highlighting process slow here, but it doesn't freeze (it could depend on resources available on my notebook). I could check the query length, but using a 124190 chars query long is something not usual anyway...<br>
<br>
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. Try, for example, typing `SELECT 1;` into the window, and see how long it takes you. I'm running QGIS on a Linux Mint 13 laptop with an i7 processor and 8GB RAM, so I don't think this has anything to do with system resources.<br>
<br>
At the moment, I have altered my local version by commenting out lines 34 and 56 of /usr/share/qgis/python/<u></u>plugins/db_manager/dlg_sql_<u></u>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 tested and incorporated in the official version.<br>
<br>
Respectfully and with thanks to those who have created and contributed to the DB Manager plugin,<br>
--Lee<span class="HOEnZb"><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></blockquote></div><br></div>