<p dir="auto">This adds some additional preloading of object tags and members for improved performance.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6338'>https://github.com/openstreetmap/openstreetmap-website/pull/6338</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/commits/9b54dbaebda6d2007cf88857dcc182cf1c0239fe" class="commit-link">9b54dba</a> Use a common association name for node/way/relation models</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/commits/fd609110a46a1c989454e95fab9eadb55a60f5cc" class="commit-link">fd60911</a> Preload tags for relation members</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/commits/149911165caf483996fb89c67111b5cf2c4507bd" class="commit-link">1499111</a> Preload tags and members for API index and show operations</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files">22 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-78174c3668c1752d368762fe97c910e6f6806949d9829096844e8791ba1acc32">app/controllers/api/maps_controller.rb</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-73fe5812764d31443ba0d43f028e68aa17963e92fe69d79f72957f5ac1a176b9">app/controllers/api/nodes_controller.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-5c915480248573e6b15e3cda7cd7f941a88b941a4554397f001c6dcfe72178f5">app/controllers/api/old_nodes_controller.rb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-3fd28d91bfe2d275c9c82c5adec3bf67a339fafbccb5a40fd26c7390d0f16ac1">app/controllers/api/old_relations_controller.rb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-739114b998da8b3c6627439f6d9f3d658ef04f1c1733ca411cbbb4dbd4f410d4">app/controllers/api/old_ways_controller.rb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-49b8b506dea5e046c47e71134ed6d1c4ca794559572895c26b1df469ceda868d">app/controllers/api/relations_controller.rb</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-eb50706672183bce46654d5a373c3df75906a65a3ae5055a16ba0d8d2005ca37">app/controllers/api/ways_controller.rb</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-703e4c45ab4e56bed5528fa65f6b6002ffb52c515e7c765df6b6b2e8875b3e81">app/controllers/nodes_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-856dbbd8a7c4b04da9855670a1bb69b1a5011ed845912c4097b2a79c0d1458db">app/controllers/old_nodes_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-a68e58beb8b6ca4cbed0bd242f5f94f6314b4bf71bcec6ed61c241e2117963ec">app/controllers/old_relation_members_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-2565415ff0cf26425751f20170047f8adeebcc125bdb9922d13cbdf7e85e8e8a">app/controllers/old_relations_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-cfe32a098ea6ffbb18196c201b634266ae4f0e0c29830fc61234fc63a56c658b">app/controllers/old_ways_controller.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-c88d47628c3f803432e802850534b1e940f3d379fc3fae3e23cf79eb4fb06001">app/controllers/relation_members_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-2102212486229c119d63d3581b6bca5bef3ade59f8d302ffcec1559011e4b4cd">app/controllers/relations_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-d05d12a423b994c05541cec57767f9714bdb70b41a31e3bc9a35d3ccebddce52">app/controllers/ways_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-d521fcf96c3de2b8c810e0e8da2c12824cd1de1a7999f8b600284e8f358703c1">app/models/node.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-bd34d574a6519bf199e087e2c1cb091c789c2a9e76b22ab8b454ddfc43e1fdd0">app/models/relation.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-bedc4e8b2c0975fdcb8401541fbed87e09c8cc55e265cf7802fba772e6b5aaf7">app/models/way.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-fc4f9f9fac2300ac52e47916c83e6bc893b0cf37602253f876cb035d67850ea2">test/models/node_test.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-f4f4607eb834bc83b509a1de9b73cedd7a01c205ce922f034c37841beab1007b">test/models/relation_test.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-f81e15a60c7d0817c735d23da48af38f7c8245853b7a023848d4df3294d77804">test/models/way_test.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338/files#diff-ba37813ca277c227a74a372479b7b05b7f3ff085d890ab708f80d62573efdb7a">test/test_helper.rb</a>
(6)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6338.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6338.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6338.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6338.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6338">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNB5KDIMND6HHAVXRT3OS2MVAVCNFSM6AAAAACEMI2EOWVHI2DSMVQWIX3LMV43ASLTON2WKOZTGMZTSMBYGQ4DENA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIBRRQDCKOBSTDVYJL3OS2MVA5CNFSM6AAAAACEMI2EOWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMOBTEDA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6338</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6338",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6338",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>