Need help to optimize potentially erroneous spatial SQL query Need help to optimize potentially erroneous spatial SQL query elasticsearch elasticsearch

Need help to optimize potentially erroneous spatial SQL query


What if you did the calculation each time you added a new shape, then stored just the intersections in a table? Now your query is instantaneous.