[Qgis-user] Optimize QGIS Command_Line
Dennis Burgess
dmburgess at linktechs.net
Tue Feb 6 06:23:40 PST 2024
ogr2ogr -f gpkg geom_multi_38.gpkg "MSSQL:server=xxxxxx;database=xxxxxxxxx;uid=xxxxxxxxx;pwd=xxxxxxxx;MultipleActiveResultSets=true;" -sql "EXEC xxxxxx 42039, 38" -overwrite -gt 1000000 -lco SPATIAL_INDEX=yes OGR_SQLITE_CACHE=10240MB OGR_SQLITE_SYNCHRONOUS=OFF
This one takes around 30 min to export to gpkg file, if I run the same exec command on sql it takes less than 40 seconds to pull down .. these are geometry lines. Around 940 lines.
The second one
"c:\program files\qgis 3.26.2\apps\qgis\bin\qgis_process" run native:dissolve --INPUT=geom_multi_55096.gpkg --OUTPUT=geom_multi_diss_38.gpkg
This would e one of them. Last job took 49 minutes, orginal input is around 1.2 gig.
Dedicated platform for processing: 72 cores, 32 gig of RAM, running on NVME disk.
SQL 2019 Enterprise: 80 cores, 512gig ram, NVME disks.
From: Johannes Kröger (WhereGroup) <johannes.kroeger at wheregroup.com>
Sent: Tuesday, February 6, 2024 2:01 AM
To: Dennis Burgess <dmburgess at linktechs.net>; QGIS-User at lists.osgeo.org
Subject: Re: [Qgis-user] Optimize QGIS Command_Line
Hey Dennis,
can you share those command lines (maybe with sensitive information stripped)? Otherwise it is hard to guess what the issue might be.
What does your CPU, RAM and I/O utilisation look like during those long running processes? Same for the MSSQL database server host system.
Cheers, Hannes
On 05.02.24 14:46, Dennis Burgess via QGIS-User wrote:
I have two command lines, one reads from my MSSQL database and creates a GeoPackage on the local disk. This takes WAY too long, just to create it , it uses 5% or less CPU, and is SUPER slow. Looking for methods to speed this up. The data is around 1.2 to 1.4 gig of pop, but it should not take 50 min to create.
Also I am doing a dissolve on this data, once its on the disk, this also takes quite a while, even though when I do it from QGIS it takes like 10 min vs an hour or more on the computer with the command line.
I’m sure I am doing something wrong on both of these. Just trying to understand what it would be.
Thanks for any assistance !
Dennis
_______________________________________________
QGIS-User mailing list
QGIS-User at lists.osgeo.org<mailto:QGIS-User at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der https://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=www.foss%2dacademy.com&umid=7036B80A-10B7-5306-BAB5-505120F413E8&auth=079c058f437b7c6303d36c6513e5e8848d0c5ac4-1d48a351cf96dc78fcc69089ad0b4a4cef7388e2<https://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2fwww.foss%2dacademy.com&umid=7036B80A-10B7-5306-BAB5-505120F413E8&auth=079c058f437b7c6303d36c6513e5e8848d0c5ac4-0b980f826f3d937e36ac4d15a89c87a459c73be8>
---------------------------------------------
WhereGroup GmbH
c/o KK03 GmbH
Lange Reihe 29
20099 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
johannes.kroeger at wheregroup.com<mailto:johannes.kroeger at wheregroup.com>
www.wheregroup.com<http://www.wheregroup.com>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240206/8ec1b019/attachment.htm>
More information about the QGIS-User
mailing list