<p></p>
<p><strong>Re boundaries</strong></p>
<p>Way can be related to multiple boundaries - it can be a boundary of a country, of an adjacent country, of a state and a district. This way can also be a river or a road. My goal is to get the most significant boundary for that way (because boundaries are semi-transparent on my map and it will be a mess as it will be drawn several times if I will just convert relations to multilinestrings). I also pass that way to lines if it has any other significant tags. May be I didn't understand flex stages right but I do not know how to achieve that without recreating the lines.</p>
<p><strong>Re DB query</strong></p>
<p>As I said there is a DELETE process using 100% CPU during that long pause. And there are no any other DELETE queries in the list. And, yes, it is 'active', I've made <code>SELECT * FROM pg_stat_activity</code> first. I will try <code>auto_explain</code> later when I will further play with lua script. I am short of disk space and each full import requires deleting supplementary data from database that I have later to recreate or reimport as there is currently no way to disable geom clustering which takes lot of temporary space.</p>
<p>** Re cache **</p>
<p>Yes, I have 64GB of memory and do not experience any shortage. I've thought that cache is used not only for nodes.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1436#issuecomment-808781556">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XAF6ITIB3NMCKQLG3TFYOTDANCNFSM4ZZHGTSQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353VHSQIPGAMZXZ3HI33TFYOTDA5CNFSM4ZZHGTS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGA2QN5A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1436#issuecomment-808781556",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1436#issuecomment-808781556",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>