Hi, Andreas, thanks for your help.
We tried the built-in relation support, combined with the edit widgets and form 
view. Is that what you mean? Powerful features as they are, they don’t fit our 
needs, however. There are quite a few tables, with two-level relationships; the 
generated forms and the workflow using the built-in solution is still too 
complex for our digitizers daily work. We also had doubts regarding to how to 
handle referential integrity constraints in edit mode. That’s why we finally 
decided to build our own plugin.
In any case, I have taken a look at it again; it feels somewhat slower than our 
solution when not editing, and roughly the same in edit mode (no measures, 
though, just my first subjective impressions).

De: Neumann, Andreas [mailto:[email protected]]
Enviado el: viernes, 08 de abril de 2016 16:02
Para: Manuel Hernández Martínez
CC: '[email protected]'
Asunto: Re: [Qgis-developer] PostGIS queries slow when in edit mode


Hi Manuel,

QGIS already has built-in relation support (1:n and n:m) - they should support 
server side queries. Do you really need to write your own plugin? Are the 
built-in relations not good enough?

Andreas

On 2016-04-08 15:26, Manuel Hernández Martínez wrote:
Hi!
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.
The queries are slow, unless I check the option to run queries server-side. 
After that, the queries run instantaneously. Yay!
However, if the layers are put in edit mode, the queries are slow again! :(
After checking the Postgis logs it seems that the run queries server-side 
option has no effect when the layers are in edit mode.
Does anyone know whether it is a known, well-founded limitation or a bug?

Regards, Manuel

________________________________
Manuel Hernández Martínez
[email protected]<mailto:[email protected]>

Agencia de Medio Ambiente y Agua de Andalucía.
http://www.agenciamedioambienteyagua.es<http://www.agenciamedioambienteyagua.es/>
Subdirección de Tecnologías de la Información.
Red de Información Ambiental de Andalucía, REDIAM.

Johan G. Gutenberg, 1. Isla de la Cartuja

41092 - SEVILLA, Sevilla. (Spain)



Tel:

+34 955 26 00 00 / +34 902 52 51 00

Fax:

+34 955 04 46 10





En la medida de lo posible, evite imprimir este correo.

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.




_______________________________________________
Qgis-developer mailing list
[email protected]<mailto:[email protected]>
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer



_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to