query gets very slow when :jsonb ?& operator is used

From: <davidjesse091(at)aol(dot)com>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: query gets very slow when :jsonb ?& operator is used
Date: 2018-09-06 23:51:46
Message-ID: 401454367.836254.1536277906458@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I have also asked this question on Stackoverflow and DBA stack exchange with no answer. It's a fairly long post, so I will post a link to it, as on Stackoverflow it is formatted nicely 
https://stackoverflow.com/questions/52212878/query-gets-very-slow-when-jsonb-operator-is-used

Any idea why my query slows down so much when I add account.residence_details::jsonb ?& array['city', 'state', 'streetName'] ?

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2018-09-07 01:39:00 Re: query gets very slow when :jsonb ?& operator is used
Previous Message Jeremy Schneider 2018-09-06 15:16:29 Re: Guideline To Resolve LWLock:SubtransControlLock