<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/1190866?s=20&v=4" /><strong>pnorman</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6570#issuecomment-3590997602">(openstreetmap/openstreetmap-website#6570)</a></div>
<blockquote>
<p dir="auto">nearby changesets (to the user's profile location) are slow and often time out.</p>
</blockquote>
<p dir="auto">I wouldn't use PostGIS just for this. Bounding boxes can be handled reasonably well without postgis. Do you have an link to the timeout issue?</p>
<p dir="auto">Anti-vandalism restrictions are a better use-case as a point-in-polygon check is difficult to do in the DB without postgis. I do wonder if checking every  geom and child geom for each object edit is a good idea. A relation edit can easily have tens of thousands of nodes as descendants.</p>
<p dir="auto">I recommend staying away from computing any distances with PostGIS. It runs into all sorts of projection problems unless you only have points, and even the point one is a problem because can't be indexed easily.</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/issues/6570#issuecomment-3590997602">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJJUJA42FFZUFNLYLT37ESR5AVCNFSM6AAAAACNOV33ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKOJQHE4TONRQGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMBMJ5XT5UHRRUZDAL37ESR5A5CNFSM6AAAAACNOV33ZGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTWWBJDGE.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/issues/6570/3590997602</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/issues/6570#issuecomment-3590997602",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6570#issuecomment-3590997602",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>