คำถามติดแท็ก postgis-2.2

1
ทำไม st_intersects เร็วกว่า &&
มันเป็นตารางคะแนน ~ 1 ล้านระเบียน SELECT COUNT(*) as value FROM alasarr_social_mv s; Output: 976270 ดูเหมือนว่า st_intersects บังคับให้ใช้ดัชนีเชิงพื้นที่ แต่ && ไม่ ตัวอย่างการใช้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 time=282.715..282.715 rows=1 loops=1) -> Bitmap Heap Scan on alasarr_social_mv s (cost=5572.17..34339.84 rows=60683 width=0) (actual …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.