This function can be used to replace bitmap_union(to_bitmap(expr)), because bitmap_union(to_bitmap(expr)) need create many many small bitmaps firstly and then merge them into a single bitmap. bitmap_agg will convert the column value into a bitmap directly. Its performance is better than bitmap_union(to_bitmap(expr)) . In our test , there is about 30% improvement.
8 lines
133 B
Plaintext
8 lines
133 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !sql1 --
|
|
20000
|
|
|
|
-- !sql2 --
|
|
20000
|
|
|