<p></p>
<p dir="auto">Example of slow request</p>
<p dir="auto"><code class="notranslate">https://api.openstreetmap.org/api/0.6/changesets.json?limit=10&time=20200501T000000Z&order=oldest</code></p>
<p dir="auto">It probably goes through almost the entire created_at index because there's no condition created_at. The lower bound is checked only on closed_at. In the fix I added a condition that skips changesets that are definitely too old to be open at the lower bound (2 * max age).</p>
<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/4158#issuecomment-1676417839">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNI4AQTJMHPB54XUZDXVEEOHANCNFSM6AAAAAA3NTN7BY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMDOQSGEEMNRR7P4PDXVEEOHA5CNFSM6AAAAAA3NTN7B2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTD5QNS6.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/4158/c1676417839</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/4158#issuecomment-1676417839",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4158#issuecomment-1676417839",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>