<p dir="auto">This adds indexes on <code class="notranslate">user+id</code> to diary and changeset comments to make comment views more efficient.</p>
<p dir="auto">Once this is merged we can switch the <code class="notranslate">diary_comments</code> association on users to sort by id instead of creation date and then drop the creation date indexes.</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/5531'>https://github.com/openstreetmap/openstreetmap-website/pull/5531</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5531/commits/3ebe31d65cea0442111afd70e29aca4bce153bb7" class="commit-link">3ebe31d</a> Add indes on user+id to changeset and diary comments</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5531/files">2 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5531/files#diff-93d71f34802cd6189442c0e4dab42b3c313db9f9746be84ad361808b3b148aea">db/migrate/20250121191749_add_user_comment_indexes.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5531/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
(15)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5531.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5531.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5531.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5531.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/5531">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL36KV6V2C3ATGCIWD2L2NDLAVCNFSM6AAAAABVTIE7VCVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDENRTGM2DAOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIG3GFWNK6W4WNKIED2L2NDLA5CNFSM6AAAAABVTIE7VCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKODGKYA.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/5531</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/5531",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5531",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>