[Tile-serving] [openstreetmap/osm2pgsql] Fix multistage processing (#1208)

Jochen Topf notifications at github.com
Sun Jun 14 10:23:30 UTC 2020


@joto commented on this pull request.



> @@ -247,6 +246,19 @@ it is not, use stage 1 to store information about OSM objects you will need
 in stage 2 in some global variable. In stage 2 you can read this information
 again and use it to decide where and how to store the data in the database.
 
+Processing in two stages can add quite a bit of overhead. Because this feature
+is new, there isn't much operational experience with it. So be a bit careful
+when you are experimenting and watch memory and disk space consumption and
+any extra time you are using. Keep in mind that:
+
+* All data stored in stage 1 for use in stage 2 in your Lua script will use
+  main memory.
+* Keeping track of way ids marked in stage 1 needs some memory.
+* To do the extra processing in stage 2, time is needed to get objects out
+  of the object store and re-process them.
+* Osm2pgsql will create an id index on all way tables to look up ways that are
+  re-processed.

Fixed in next version of PR.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1208#discussion_r439814435
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200614/ea09693e/attachment-0001.htm>


More information about the Tile-serving mailing list