-
Hello! I've been running an ingest of the Daylight v1.30 release (including a buildings sidecar that has been merged into the planet file )which has a ton more buildings in it than previous releases. From what I can tell, the data has been inserted into postgres, but when I look at what queries are still going, I see a handful of idle queries like this
and these slow running deletes
These delete queries change as time goes on, but each one takes quite a while to finish, which I presume is holding up the idle queries from above. I was curious if anyone knew what part of the workflow makes these deletes get issued, and if there's something to be done to speed things up? The call to osm2pgsql looks like
where the lua file is from tilezen. Many thanks for any info/suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 25 replies
-
Can you provide your osm2pgsql output and version? |
Beta Was this translation helpful? Give feedback.
-
@pnorman Good news, with 1.9.2 it got past where 1.5.1 was stuck!
The bad news is there was a |
Beta Was this translation helpful? Give feedback.
-
@pyoung-sc Not to side track this discussion, but could you explain how you merged your 1.2 billion building sidecar (99 GB) into the planet file? The official daylight page recommends using osmium. However, I tried to do this on a machine with >400 GB RAM available on Ubuntu 22.04, and osmium crashed, including the Terminal window I ran it in, likely when it hit the maximum RAM available, as I saw it go over >300 GB RAM last time I checked. This makes me wonder how you managed to merge those gigantic files on a system with just 256 GB? |
Beta Was this translation helpful? Give feedback.
-
I now imported the latest v1.32 of Daylight. However, I am seeing a serious issue with the country / administrative boundaries, as added to the PBF using the osmium As you can see, the country boundaries (admin_level=2) are garbled, and only Australia and a few other countries come out more or less unscathed. The majority of boundaries is missing. Admittedly, the result you see is based on a custom generalization workflow I developed myself, but I have thoroughly battle tested this workflow over the last couple of years importing country and official OpenStreetMap Planet downloads, and never before seen this particular issue, hence I am pretty sure the issue is not on my side. Another indication that there may have been a processing error at Facebook's side, is that the link to the matching coastlines-v1.32.gz file, is broken and ends up on an XML error page (https://daylightmap.org/). This is not the case for the previous Daylight v1.30. Before I contact Meta, can you confirm this issue? |
Beta Was this translation helpful? Give feedback.
-
Any news regarding the boundary issue? Just to be sure, I have re-imported the existing combined PBF I created with osmium, and re-run my workflow. I still see the issue. I have not yet re-downloaded all the data. I did notice that Facebook seems to have fixed the download link for the coastlines, but if that also means they fixed anything else, IDK. I would still appreciate if you could confirm this issue before I go through the whole process of re-downloading and re-processing huge datasets that may - or may not - remain broken. |
Beta Was this translation helpful? Give feedback.
@pnorman Good news, with 1.9.2 it got past where 1.5.1 was stuck!