<h2 dir="auto">What</h2>
<ul dir="auto">
<li>To speed up performance in the local development environment, I propose the following
<ul dir="auto">
<li>Using <code class="notranslate">puma</code> on <code class="notranslate">docker compose up</code></li>
<li>Using File cache on <code class="notranslate">docker compose up</code></li>
</ul>
</li>
</ul>
<h2 dir="auto">Why</h2>
<ul dir="auto">
<li>This pull request proposes two changes
<ul dir="auto">
<li>The first is related to the caching mechanism, which I think is important for this Rails application
<ul dir="auto">
<li>I feel there are performance issues, especially when using the iD editor in a development environment</li>
<li>When you try to use the iD editor, Rails requests all the nodes, ways and relations in the bbox of the area the browser is displaying to the DB and generates XML</li>
<li>These nodes, ways, and relations seem to be properly cached as fragments</li>
<li>However, the cache mechanism is disabled in the development environment!</li>
<li>For that reason, I would like to enable cache properly in the development environment as well!</li>
</ul>
</li>
<li>The second point concerns the number of concurrent connections
<ul dir="auto">
<li>I think the number of concurrent connections is as important for this Rails application as the caching mechanism</li>
<li>When you drag in the iD editor, the browser will abort the request and try a new connection</li>
<li>However, the development environment seems to have only one concurrent connection!</li>
<li>Therefore, I propose to change it so that requests can be accepted in parallel in the development environment by using puma</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 dir="auto">How</h2>
<ul dir="auto">
<li>I have changed only about 15 lines</li>
<li>Moreover, it is clear that they only affect the development environment</li>
</ul>
<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/3810'>https://github.com/openstreetmap/openstreetmap-website/pull/3810</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/commits/9aeb476d46ec96b230ecf11d016742f6016426c5" class="commit-link">9aeb476</a> Use Puma and File cache on dev env for good performance</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/commits/77c46197e327e3e40af9f2ba1ec60c4a3fd88013" class="commit-link">77c4619</a> fix for rubocop</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files">5 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55f">Gemfile</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files#diff-d3c4b3f41072daa416f1920511e9b2e26caea8c5cec0a14cb9508589a4dafa47">config/environments/development.rb</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files#diff-9ef9d00419123798c5fc5b72fb62231c9ba8e5c8e3ccaa584bc3b9846522e79b">config/example.database.yml</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files#diff-24409379bdb75ad446bb4e2c18fd4cced1a263b99a3ff96fc3777d8fd8faeab9">config/puma.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3810/files#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3">docker-compose.yml</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3810.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3810.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3810.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3810.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/3810">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLONEWNXY3TGJVOBCFLWJCSY7ANCNFSM6AAAAAASFHW5EU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMJ7QKVZRXD433HBL3WJCSY7A5CNFSM6AAAAAASFHW5EWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFNTUDDU.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/3810</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/3810",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3810",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>