<p></p>
<p><a href="https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release/" rel="nofollow">Rails 6.1 was released earlier this month</a>, and will allow us to make two big changes:</p>
<ul>
<li>Use different buckets for different attachments. This means that we can store user images in one bucket (like now) and e.g. GPX files in another. Moving GPX files from filesystem storage (NFS) to object storage is a key item for the OSMF OWG too, to help with scaling and resilience.</li>
<li>Use read-only database connections - see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="625753786" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2634" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2634/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/2634">#2634</a></li>
</ul>
<p>Another feature in Rails 6.1 that I would like to explore is:</p>
<ul>
<li>Strict Loading Associations. Rails normally loads associations lazily, but that can easily lead to N+1 queries. I want to look at turning on Strict Loading, so that we need to be careful about declaring associations that should be preloaded, and reducing the number of queries that each rendering uses.</li>
</ul>
<p>The current blockers for the upgrade is:</p>
<ul>
<li>Composite Primary Keys. There is a <a href="https://github.com/composite-primary-keys/composite_primary_keys/pull/531" data-hovercard-type="pull_request" data-hovercard-url="/composite-primary-keys/composite_primary_keys/pull/531/hovercard">pull request</a> available, so if that gets merged we should be all set.</li>
<li>I don't know of any other blockers yet!</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/openstreetmap-website/issues/3021">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIUGWHWJPI7MKPYPD3SXB2CHANCNFSM4VL64KDQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLMKLP4D4BJ4JEG6ZQLSXB2CHA5CNFSM4VL64KD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LRXISIA.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/openstreetmap-website/issues/3021",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3021",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>