Re: effective_io_concurrency on EBS/gp2
Vitaliy Garnashevich <vgarnashevich@gmail.com>
From: Vitaliy Garnashevich <vgarnashevich@gmail.com>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: hzzhangjiazhi <hzzhangjiazhi@corp.netease.com>,
Gary Doades <gpd@gpdnet.co.uk>, Rick Otten <rottenwindfish@gmail.com>,
"pgsql-performance@lists.postgresql.org"
<pgsql-performance@lists.postgresql.org>
Date: 2018-02-05T11:26:43Z
Lists: pgsql-performance
> I mean, that the issue is indeed affected by the order of rows in the > table. Random heap access patterns result in sparse bitmap heap scans, > whereas less random heap access patterns result in denser bitmap heap > scans. Dense scans have large portions of contiguous fetches, a > pattern that is quite adversely affected by the current prefetch > mechanism in linux. > Thanks for your input. How can I test a sparse bitmap scan? Can you think of any SQL commands which would generate data and run such scans? Would a bitmap scan over expression index ((aid%1000)=0) do a sparse bitmap scan? Regards, Vitaliy