openmaptiles/layers
Frédéric Rodrigo 04d1b66e67
Incremental update marine point (#952)
Replacing update on the whole table with an update only on changed rows.

The goal is to update more quickly by just updating the changing content.
The update now focus on osm_id of changed rows, it use index. Add a where clause tags != update_tags(tags, geometry) to ensure only update when changed.

It requires one more trigger and a table to store changed osm_id.

The UPDATE is keep in a function to be reusable for initial setup and trigger update.

It is a based on the already merged https://github.com/openmaptiles/openmaptiles/pull/944

It is a separated PR as less obvious than previous. It replaces the reset of the `rank` field to NULL by missing value resulting of `LEFT JOIN`. It avoid triggering a new update on the table by reset the value then re-seting it to initial or new value.

It addresses #814.

Thanks @frodrigo
2020-08-30 16:16:54 +03:00
..
aerodrome_label Make more simple incremental update (#944) 2020-08-28 11:03:27 +02:00
aeroway Fix & optimize incorrect function declarations (#918) 2020-06-17 12:15:26 -04:00
boundary Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
building Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
housenumber Make more simple incremental update (#944) 2020-08-28 11:03:27 +02:00
landcover Fix & optimize incorrect function declarations (#918) 2020-06-17 12:15:26 -04:00
landuse Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
mountain_peak Make more simple incremental update (#944) 2020-08-28 11:03:27 +02:00
park Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
place Make update_city_point use incremental update #814 (#951) 2020-08-30 15:29:50 +03:00
poi Make more simple incremental update (#944) 2020-08-28 11:03:27 +02:00
transportation Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
transportation_name Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
water Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00
water_name Incremental update marine point (#952) 2020-08-30 16:16:54 +03:00
waterway Remove alignment of AS in SQL and few others (#932) 2020-07-22 13:48:25 +02:00