pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: Performance on JSONB select
Date: Tue, 8 Oct 2019 02:51:40 -0700 (MST)
Message-ID: <1570528300014-0.post@n3.nabble.com> (raw)
In-Reply-To: <CAHOFxGrqwJYg=iuyjqt9Tf6twb1h3aA13+c0sOWY1SESbT9gXw@mail.gmail.com>
References: <1570027063947-0.post@n3.nabble.com>
	<CAHOFxGpFn8+r+_RjRMkbUH0TY0DPhyaV=+JraTi8caZWBy7cZA@mail.gmail.com>
	<1570048895867-0.post@n3.nabble.com>
	<CAFj8pRAnbGm+S+zKZO4tMWxqChf_vjmLJe5vgmYiRU88NdFiMQ@mail.gmail.com>
	<1570286972307-0.post@n3.nabble.com>
	<CAPfkCSDYgk5bKQZ=KqQ8vUEL29S6RWXYvT=jfn6Y+1FAASBdwA@mail.gmail.com>
	<1570297030805-0.post@n3.nabble.com>
	<CAHOFxGrqwJYg=iuyjqt9Tf6twb1h3aA13+c0sOWY1SESbT9gXw@mail.gmail.com>

Sorry, I told you that the status was always populated but not, I need that
filter for the index because not all records are using that json structure.
When json is not null then yes, Status is always there. 
I have maybe 20 or 25% of records having json populated, so, I really need
that filter.

Yes, that solution is fine. Selectivity is fine, speed is fine and the index
is "almost dynamic"



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html





view thread (12+ messages)

Message-ID: <1570528300014-0.post@n3.nabble.com>
Permalink:  ../1570528300014-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1570528300014-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: marcos@f10.com.br
  Subject: Re: Performance on JSONB select
  In-Reply-To: <1570528300014-0.post@n3.nabble.com>
  References: <1570027063947-0.post@n3.nabble.com> <CAHOFxGpFn8+r+_RjRMkbUH0TY0DPhyaV=+JraTi8caZWBy7cZA@mail.gmail.com> <1570048895867-0.post@n3.nabble.com> <CAFj8pRAnbGm+S+zKZO4tMWxqChf_vjmLJe5vgmYiRU88NdFiMQ@mail.gmail.com> <1570286972307-0.post@n3.nabble.com> <CAPfkCSDYgk5bKQZ=KqQ8vUEL29S6RWXYvT=jfn6Y+1FAASBdwA@mail.gmail.com> <1570297030805-0.post@n3.nabble.com> <CAHOFxGrqwJYg=iuyjqt9Tf6twb1h3aA13+c0sOWY1SESbT9gXw@mail.gmail.com> <1570528300014-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox