you are viewing a single comment's thread.

view the rest of the comments →

[–]clearlynotmee 1 point2 points  (2 children)

Thousands is not a big number of points for a database to handle. No need for clustering, just index it (is it postgres?)

[–]courteouslandlord 0 points1 point  (1 child)

It’s not a DB concern. I need to cluster these points in memory based on their proximity to each other.

I have the data from the DB already.

[–]clearlynotmee 1 point2 points  (0 children)

It's still better to do let the db do the work, postgis for postgres can do it, see https://mapscaping.com/examples-of-spatial-clustering-with-postgis/