New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diff update osm transportation name network linestring #996
Diff update osm transportation name network linestring #996
Conversation
Results evaluating commit 995f2da (merged with base 47cdfc2 as 82d94de). See run details. PostgreSQL DB size in MB: 2665 ⇒ 2608 (-2.1% change)
expand for details...
|
…le with diff update
…a table with diff update
af78d8b
to
995f2da
Compare
DROP MATERIALIZED VIEW IF EXISTS osm_transportation_name_linestring_gen1 CASCADE; | ||
DROP MATERIALIZED VIEW IF EXISTS osm_transportation_name_linestring_gen2 CASCADE; | ||
DROP MATERIALIZED VIEW IF EXISTS osm_transportation_name_linestring_gen3 CASCADE; | ||
DROP MATERIALIZED VIEW IF EXISTS osm_transportation_name_linestring_gen4 CASCADE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These DROPs, aren't they supposed to be in update_transportation_name.sql
where the materialized views are created? In repeated make import-sql
steps are rising error.
It is the same as for #987 DROP MATERIALIZED VIEW IF EXISTS osm_transportation_name_linestring CASCADE;
which supposed to be in update_transportation_name.sql
and not in network_type.sql
and what is now rising error for repeated make import-sql
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I remove the DROP MATERIALIZED
, but replace it by DROP TRIGGER
.
I agree this is odd. I was like this before I start working on it.
It is due because interdependencies between network_type.sql
and update_route_member.sql
. The two may probably need to be merged. But please, if you want to merge it, let do it after this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I see it now.
Thanks a lot. It looks great. |
…t version of osm object (#997) Current implementation of osm_important_waterway_linestring have two bugs: * The distinct on is_old keep the oldest version of the old object, and the oldest version of the new object, but need the last version of the new object. * Delete the old version of the object and rebuild the using the new version of the object. But we need to remove matchings the old and the new version of the object, then rebuild the two. Then only delete and update using first and last version of the object, intermediate versions are ignored. Similar implementation of what is done in #996.
@frodrigo, Does this code handle updates that only change the |
Replacing materialized view by a tables with update from trigger on change only.
Differential update of
osm_transportation_name_linestring
,osm_transportation_name_linestring
andosm_transportation_name_linestring_genX
).At the end of the transaction the dependent rows are updated.
The goal is to update more quickly the content of derivated tables by just updating the changing content. It replaces the update of materialized view because their need a full recompute (with lock issue).
It is the last part of the replacement of materialized view for the transportation layer.
It addresses #814 and a part of #809.