On Thursday, 17 April 2025, 07:36:51 CEST Johannes Kröger (WhereGroup) via 
QGIS-User wrote:
> Workaround, that works well in my specific data and use case:
> 
> My input layer only covers small and local parts of the full coverage of
> the big PostGIS layer. Because of this I could switch the overlay input
> for the intersection from the PostGIS layer to a query layer that
> filters the PostGIS layer against the convex hull of the input layer
> with ST_Intersects. Now only a small fraction of the features will be
> fetched and the complexity depends mostly on the spatial distribution of
> the input data, not the overlay layer.
> 
> Works very well so far and vastly faster.
> 
> I still feel like I am overlooking something very basic though :o)

Is your PostGIS read-only? Otherwise you could load your local layer into the 
database and have your intersection done by the database. Should be way faster 
and you won't download the whole coverage layer. Some time ago there was an 
effort to map QGIS tools to their PostGIS equivalent and have the operations 
run in the database directly instead of locally. But I think it stalled and I 
didn't follow it anymore. 

Best Regards
-- 
Tobias A Schula
Forestry Expert

geospat...@schula.org

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to