<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>Hi!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>I'm developing a plugin for QGIS. When the user selects a feature, it queries a few other layers from Postgis to fill in a form with related data.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>The queries are slow, unless I check the option to run queries server-side. After that, the queries run instantaneously. Yay!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>However, if the layers are put in edit mode, the queries are slow again! :(<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>After checking the Postgis logs it seems that the run queries server-side option has no effect when the layers are in edit mode.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Does anyone know whether it is a known, well-founded limitation or a bug?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Regards, Manuel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#002060;mso-fareast-language:ES'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal style='text-align:justify'><b><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>Manuel Hernández Martínez</span></b><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>                                    </span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span lang=ES-TRAD style='font-size:9.0pt;mso-fareast-language:ES'><a href="mailto:mhernandezm@agenciamedioambienteyagua.es"><span style='color:blue'>mhernandezm@agenciamedioambienteyagua.es</span></a></span><span style='font-size:9.0pt;mso-fareast-language:ES'> </span><span style='font-size:9.0pt;mso-fareast-language:ES'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;mso-fareast-language:ES'> <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";mso-fareast-language:ES'>Agencia de Medio Ambiente y Agua de Andalucía.                                                </span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";mso-fareast-language:ES'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='mso-fareast-language:ES'><a href="http://www.agenciamedioambienteyagua.es/" title="http://www.egmasa.es/"><span lang=ES-TRAD style='font-size:9.0pt;color:blue'>http://www.agenciamedioambienteyagua.es</span></a></span><span lang=ES-TRAD style='font-size:9.0pt;color:blue;mso-fareast-language:ES'>           </span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;font-family:"Arial","sans-serif";mso-fareast-language:ES'>Subdirección de Tecnologías de la Información</span><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'>Red de Información Ambiental de Andalucía, REDIAM. </span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#333333;mso-fareast-language:ES'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify'><span lang=ES-TRAD style='font-size:9.0pt;color:#333333;mso-fareast-language:ES'> <o:p></o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=631 style='width:473.2pt;border-collapse:collapse'><tr style='height:11.25pt'><td width=631 colspan=2 valign=bottom style='width:473.2pt;padding:0cm 5.4pt 0cm 5.4pt;height:11.25pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>Johan G. Gutenberg, 1. Isla de la Cartuja</span><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr style='height:11.25pt'><td width=631 colspan=2 valign=bottom style='width:473.2pt;padding:0cm 5.4pt 0cm 5.4pt;height:11.25pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>41092 - SEVILLA, Sevilla. (Spain)</span><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr style='height:11.25pt'><td width=631 colspan=2 valign=bottom style='width:473.2pt;padding:0cm 5.4pt 0cm 5.4pt;height:11.25pt'></td></tr><tr style='height:10.15pt'><td width=37 valign=bottom style='width:27.65pt;padding:0cm 5.4pt 0cm 5.4pt;height:10.15pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;color:black;mso-fareast-language:ES'>Tel: </span><span lang=ES-TRAD style='font-size:9.0pt;color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td><td width=594 valign=bottom style='width:445.55pt;padding:0cm 0cm 0cm 0cm;height:10.15pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>+34 955 26 00 00 / +34 902 52 51 00</span><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr style='height:10.15pt'><td width=37 valign=bottom style='width:27.65pt;padding:0cm 5.4pt 0cm 5.4pt;height:10.15pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;color:black;mso-fareast-language:ES'>Fax: </span><span lang=ES-TRAD style='font-size:9.0pt;color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td><td width=594 valign=bottom style='width:445.55pt;padding:0cm 0cm 0cm 0cm;height:10.15pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'>+34 955 04 46 10</span><span lang=ES-TRAD style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr><tr style='height:5.65pt'><td width=37 valign=bottom style='width:27.65pt;padding:0cm 5.4pt 0cm 5.4pt;height:5.65pt'></td><td width=594 valign=top style='width:445.55pt;padding:0cm 0cm 0cm 0cm;height:5.65pt'></td></tr><tr style='height:3.5pt'><td width=631 colspan=2 valign=bottom style='width:473.2pt;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:3.5pt'><p class=MsoNormal style='text-align:justify'><b><span style='font-size:9.0pt;color:#006600;mso-fareast-language:ES'>En la medida de lo posible, evite imprimir este correo.  </span></b><b><span lang=ES-TRAD style='font-size:9.0pt;color:#006600;mso-fareast-language:ES'><o:p></o:p></span></b></p></td></tr><tr style='height:3.5pt'><td width=631 colspan=2 valign=top style='width:473.2pt;padding:0cm 5.4pt 0cm 5.4pt;height:3.5pt'><p class=MsoNormal style='text-align:justify'><span style='font-size:9.0pt;color:black;mso-fareast-language:ES'>Este correo electrónico y los documentos que en él se puedan adjuntar, contiene información de carácter confidencial dirigida exclusivamente a su/s destinatario/s. Si Usted no es el destinatario de este mensaje, le ruego que lo destruya sin hacer copia digital o física, comunicando por correo electrónico, fax o teléfono a la Agencia de Medio Ambiente y Agua de Andalucía la recepción del mismo. Así mismo, queda expresamente prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de la Agencia de Medio Ambiente y Agua de Andalucía. </span><span lang=ES-TRAD style='font-size:9.0pt;color:black;mso-fareast-language:ES'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span style='mso-fareast-language:ES'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>