[QGIS-Developer] Method selectedFeatures() works too slow in QGIS 3 Python console

Nyall Dawson nyall.dawson at gmail.com
Mon Nov 4 18:49:59 PST 2019


On Tue, 5 Nov 2019 at 00:44, Geo_Nik <v.nikulishyn at gmail.com> wrote:
>
> Thanks a lot. I haven't got access to the database logs.

Unfortunately without these it's almost impossible to diagnose. The
alternative would be to setup your own debug build environment and log
the requests locally..

Nyall

  But method works
> correct in QGIS 2. I found some differences between  pyqgis2 API:
> https://qgis.org/api/2.18/qgsvectorlayer_8cpp_source.html  (QGIS2 :line
> 2732)
>
> and  pyqgis3 API:
>
> https://qgis.org/api/2.18/qgsvectorlayer_8cpp_source.html  (QGIS2 :line
> 2732)
>
> And one more interesting fact: Working time increase proportionally to the
> number of user-selected features (Working_time ≈ n*5 min, where n - number
> of user-selected features).
>
> And I still did not find solution this problem. If someone have some idea
> please share with me.
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list