<div dir="auto">Following raymond advice,<div dir="auto"><br></div><div dir="auto">Move the CSV to a shapefile or geopackage and run the create spatial index on it.</div><div dir="auto"><br></div><div dir="auto">If you have very complex polygons, use suvdivide to create smaller ones save it in shapefile or geopackage and run create spatial index on it.</div><div dir="auto"><br></div><div dir="auto"><a href="https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#subdivide">https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#subdivide</a><br></div><div dir="auto"><br></div><div dir="auto">I would try with a smaller subset of points to test the improvement speed before trying to run on the full dataset again.</div><div dir="auto"><br></div><div dir="auto">Answering your question, yes I am pretty sure postgis is much faster than mssql, and yes I think most recent versions of PostgreSQL PostGIS make use of more than one core.</div><div dir="auto"><br></div><div dir="auto">Good luck</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A sexta, 9/09/2022, 17:59, Dennis Burgess via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">qgis-user@lists.osgeo.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In the format, are you talking about the shape or the CSV with 2million lines? <br>
<br>
<br>
<br>
Dennis Burgess<br>
<br>
Author of "Learn RouterOS- Second Edition” <br>
Link Technologies, Inc -- Mikrotik & WISP Support Services <br>
Office: 314-735-0270 Website: <a href="http://www.linktechs.net" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.linktechs.net</a> <br>
Create Wireless Coverage’s with <a href="http://www.towercoverage.com" rel="noreferrer noreferrer noreferrer" target="_blank">www.towercoverage.com</a> <br>
Need MikroTik Cloud Management: <a href="https://cloud.linktechs.net" rel="noreferrer noreferrer noreferrer" target="_blank">https://cloud.linktechs.net</a> <br>
<br>
-----Original Message-----<br>
From: Qgis-user <<a href="mailto:qgis-user-bounces@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">qgis-user-bounces@lists.osgeo.org</a>> On Behalf Of Raymond Nijssen via Qgis-user<br>
Sent: Friday, September 9, 2022 11:11 AM<br>
To: <a href="mailto:qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">qgis-user@lists.osgeo.org</a><br>
Subject: Re: [Qgis-user] Faster Intersects<br>
<br>
Some things to check:<br>
<br>
* Is your data local?<br>
* Is it in a fast file format? (for example .gpkg or .shp and not .csv or .geojson)<br>
* Does the data have a spatial index?<br>
* Is the geometry very complicated, like a huge multi polygon with thousands of vertices and islands? In that case, split it up in several polygons.<br>
<br>
Hope this helps. Anyway, it should not need to take this long.<br>
<br>
Raymond<br>
<br>
<br>
<br>
On 09-09-2022 16:28, Dennis Burgess via Qgis-user wrote:<br>
> How can I speed up Intersects? Right now I have a single geometry <br>
> file, but then have about 2 million points that I need to understand <br>
> what intersects that geometry. Right now its taking 3 days? <br>
> QGIS-bin.exe is only using 11% CPU.. ☹<br>
> <br>
> Dennis<br>
> <br>
> <br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>