Re: Less-silly selectivity for JSONB matching operators - Mailing list pgsql-hackers

From Alexey Bashtanov
Subject Re: Less-silly selectivity for JSONB matching operators
Date
Msg-id a692a4d7-cc08-fe6a-dac0-625e292bf64d@imap.cc
Whole thread Raw
In response to Re: Less-silly selectivity for JSONB matching operators  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Quickly tested like this:

create table t(a jsonb);
insert into t select jsonb_object( array[(random() * 10)::int::text], 
'{" "}') from generate_series(1, 100000);
insert into t select jsonb_object( array[(random() * 10)::int::text], 
array[(random() * 1000)::int::text]) from generate_series(1, 100000);
explain analyze select * from t where a ? '1';
analyze t;
explain analyze select * from t where a ? '1';

Best, Alex



pgsql-hackers by date:

Previous
From: Alexey Bashtanov
Date:
Subject: Re: Less-silly selectivity for JSONB matching operators
Next
From: Tom Lane
Date:
Subject: Re: Less-silly selectivity for JSONB matching operators