I need to dissolve some large datasets using PostGIS but it takes a lot of time.
What I have already tried:
- Lower the precision of the dataset to 6 digits.
- Simplify the features
- Cluster the table based on spatial index
- Adjusted PostgreSQL based on this article: https://postgis.net/docs/performance_tips.html
My datasets are some RF coverage with 5M of features and 2 ~ 5GB of data.
My postgis version is
POSTGIS="2.4.4 r16526" PGSQL="100" GEOS="3.6.2-CAPI-1.10.2 4d2925d6" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 1.11.4, released 2016/01/25" LIBXML="2.9.1" LIBJSON="0.11" TOPOLOGY RASTER
And my PostgreSQL version is
PostgreSQL 10.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit
Is there a way to improve st_union performance?