Re: querying with index on jsonb slower than standard column. Why?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Tim Dudgeon <tdudgeon(dot)ml(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: querying with index on jsonb slower than standard column. Why?
Date: 2014-12-08 16:56:04
Message-ID: 27877.1418057764@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance pgsql-sql

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
> Seems work_mem is the key:

Fascinating. So there's some bad behavior in the lossy-bitmap stuff
that's exposed by one case but not the other. The set of heap rows we
actually need to examine is presumably identical in both cases. The
only idea that comes to mind is that the order in which the TIDs get
inserted into the bitmaps might be entirely different between the two
index types. We might have to write it off as bad luck, if the
lossification algorithm doesn't have enough information to do better;
but it seems worth looking into.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2014-12-08 20:53:09 Re: [SQL] querying with index on jsonb slower than standard column. Why?
Previous Message Adrian Klaver 2014-12-08 16:44:52 Re: querying with index on jsonb slower than standard column. Why?

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2014-12-08 20:53:09 Re: [SQL] querying with index on jsonb slower than standard column. Why?
Previous Message Adrian Klaver 2014-12-08 16:44:52 Re: querying with index on jsonb slower than standard column. Why?