I have a Bigquery table with only one column named 'point'. It contains location coordinates that I want to cluster using the ST_CLUSTERDBSCAN function in BigQuery.
I use the following query:
SELECT ST_CLUSTERDBSCAN(point, 2000, 200) OVER () AS cluster_num
FROM mytable
I get this error:
Resources exceeded during query execution: The query could not be executed in the allotted memory. Peak usage: 128% of limit. Top memory consumer(s): analytic OVER() clauses: 97% other/unattributed: 3%
From what I understand, this is because the query is memory intensive. Is there any way I can use cluster my data given that my table contains millions of rows?
