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] > > Agencia de Medio Ambiente y Agua de Andalucía. > > > http://www.agenciamedioambienteyagua.es [1] > > 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] > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer Links: ------ [1] http://www.agenciamedioambienteyagua.es/
_______________________________________________ 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
