postgresql/contrib/bloom
Michael Paquier 4c910f3bbe bloom: Optimize bitmap scan path with streaming read
This commit replaces the per-page buffer read look in blgetbitmap() with
a reading stream, to improve scan efficiency, particularly useful for
large bloom indexes.  Some benchmarking with a large number of rows has
shown a very nice improvement in terms of runtime and IO read reduction
with test cases up to 10M rows for a bloom index scan.

For the io_uring method, The author has reported a 3x in runtime with
io_uring while I was at close to a 7x.  For the worker method with 3
workers, the author has reported better numbers than myself in runtime,
with the reduction in IO stats being appealing for all the cases
measured.

Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/CABPTF7VrqfbcDXqGrdLQ2xaQ=K0RzExNuw6U_GGqzSJu32wfdQ@mail.gmail.com
2026-03-11 07:36:10 +09:00
..
expected Remove incidental md5() function uses from several tests 2023-07-04 14:31:57 +02:00
sql Remove incidental md5() function uses from several tests 2023-07-04 14:31:57 +02:00
t Update copyright for 2026 2026-01-01 13:24:10 -05:00
.gitignore Bloom index contrib module 2016-04-01 16:42:24 +03:00
blcost.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
blinsert.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
bloom--1.0.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
bloom.control Bloom index contrib module 2016-04-01 16:42:24 +03:00
bloom.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
blscan.c bloom: Optimize bitmap scan path with streaming read 2026-03-11 07:36:10 +09:00
blutils.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
blvacuum.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
blvalidate.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
Makefile Re-enable contrib/bloom's TAP tests. 2021-09-27 18:48:01 -04:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00