一、Bitmap Heap Scan/ Bitmap Index Scan
在查看GP的执行计划会看到Bitmap Heap Scan/ Bitmap Index Scan/Bitmap Or/Bitmap And.这些关键字是什么意思呢?
Bitmap Index Scan/Bitmap Or/Bitmap And -> Bitmap Heap Scan。 前者的cost最红会汇总到后面的Cost。
如下图:
定义
A plain indexscan fetches one tuple-pointer at a time from the index,and immediately visits that tuple in the table. A bitmap scan fetches all the tuple-pointers from the index in one go, sorts them using an in-memory "bitmap" data structure, and then visits the table tuples in physical tuple-location order. The bitm