<p></p>
<p>With the flex backend it is possible to add the same OSM object into multiple tables. Currently the code doesn't do any caching. If the object is written to another table (i.e. if <code>add_row()</code> is called a second time) nodes in a way and members of a relation are re-requested from the database and the geometry is rebuilt.</p>
<p>We should have some kind of caching here that</p>
<ul>
<li>reuses the data we just got from the database</li>
<li>reuses the geometry (if possible, depends on the geometry transformation used and parameters)</li>
</ul>
<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/1164">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353T2Z24PPTDRQ2UO4RDRQWSA7ANCNFSM4M45G2LQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353S2U5FSPGVSCROQM33RQWSA7A5CNFSM4M45G2L2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JFL2IAA.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/1164",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1164",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>