openmaptiles/layers
Brian Sperlongano 0cff3449b5
Implement non-blocking refresh (#1308)
This PR implements non-blocking updates in the park layer.

The approach was to use the `REFRESH MATERIALIZED VIEW CONCURRENTLY` feature in postgres.  In order to achieve this, a unique index was added on the z4 dissolved park area table.  The `ST_Union` / `ST_Dump` sequence was changed to an explicit cluster DB scan (an equivalent operation) so that a unique osm ID could be generated from each dissolved polygon.

Below is a screen shot from Idaho, USA showing that the dissolved z4 still works as expected.

![image](https://user-images.githubusercontent.com/3254090/142341513-588045f0-7757-4acd-99e5-a50bbe6b0682.png)
2021-11-24 11:17:29 +01:00
..
aerodrome_label
aeroway
boundary
building
housenumber
landcover
landuse
mountain_peak
park Implement non-blocking refresh (#1308) 2021-11-24 11:17:29 +01:00
place add province, increase scalerank + labelrank (#1306) 2021-11-18 18:05:02 +01:00
poi
transportation Selective rendering of tracks and paths at z12-13 (#1190) 2021-11-18 17:35:34 +01:00
transportation_name Selective rendering of tracks and paths at z12-13 (#1190) 2021-11-18 17:35:34 +01:00
water
water_name
waterway