Skip to content

Commit 318b229

Browse files
committed
improve
1 parent b6e9e6c commit 318b229

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

201806/20180622_01.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ select * from xxx where st_cover(geo?, loc) ;
103103

104104
执行计划会变成类似这样(注意下面演示的执行计划没有对空间去重(只是演示问题,不是真实问题),你需要关注的是空间去重后,recheck没有了,bitmap scan没有了,只有append, INDEX SCAN。真实情况下按bound box切割时多个index scan扫描的BLOCK是完全隔离的,不会产生冗余扫描。)
105105

106+
同时,原始的查询条件如果有100个OR,实际上在空间处理后换成union all的查询可能没有100个UNION ALL,根据实际的空间SPLIT情况来定。
107+
106108
```
107109
Append (cost=0.41..17.40 rows=2 width=1178) (actual time=0.126..3.267 rows=430 loops=1)
108110
Buffers: shared hit=500

0 commit comments

Comments
 (0)