1
Dlaczego st_intersects jest szybszy niż &&
To jest tabela punktów. ~ 1 milion rekordów SELECT COUNT(*) as value FROM alasarr_social_mv s; Output: 976270 Wygląda na to, że st_intersects zmusza do użycia indeksów przestrzennych, ale && nie. Próbka przy użyciu ST_Intersects(282ms) SELECT COUNT(*) as value FROM alasarr_social_mv WHERE ST_Intersects( the_geom_webmercator, ST_MakeEnvelope(-410961,4920492,-402305,4926887,3857) ) Aggregate (cost=34370.18..34370.19 rows=1 width=0) (actual …