Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGnzd-0004LQ-LM for pgsql-general@arkaria.postgresql.org; Sat, 05 Oct 2019 17:37:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGnzc-0006GA-9M for pgsql-general@arkaria.postgresql.org; Sat, 05 Oct 2019 17:37:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGnzb-0006Fq-SF for pgsql-general@lists.postgresql.org; Sat, 05 Oct 2019 17:37:20 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iGnzU-0008VQ-IL for pgsql-general@postgresql.org; Sat, 05 Oct 2019 17:37:18 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id C52B317B025CE for ; Sat, 5 Oct 2019 10:37:10 -0700 (MST) Date: Sat, 5 Oct 2019 10:37:10 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1570297030805-0.post@n3.nabble.com> In-Reply-To: References: <1570027063947-0.post@n3.nabble.com> <1570048895867-0.post@n3.nabble.com> <1570286972307-0.post@n3.nabble.com> Subject: Re: Performance on JSONB select MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_634300_1812351077.1570297030805" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_634300_1812351077.1570297030805 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No, no, no, partial index is the where clause of it and I=C2=B4m not talkin= g about that.=20 I=C2=B4m talking about datevalue, which will be used one or another, depend= ing on status value This record iindex will be status and datevalue from "visitadescartada" object {   "status": "visitadescartada",   "atribuido": {"datevalue": "2019-09-05 14:47:11"},   "visitadescartada": {"datevalue": "2019-09-12 11:47:17"},   "digitacaodescartada": {} } And here the index record will be status and datevalue from "atribuido" object {   "status": "atribuido",   "atribuido": {"datevalue": "2019-09-05 14:47:11"},   "visitadescartada": {"datevalue": "2019-09-12 11:47:17"},   "digitacaodescartada": {} } -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml ------=_Part_634300_1812351077.1570297030805 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: quoted-printable No, no, no, partial index is the where clause of it and I=C2=B4m not talkin= g about that.
I=C2=B4m talking about datevalue, which will be used one or another, depend= ing on status value

This record iindex will be status and datevalue from "visitadescartada" obj= ect
{
  "status": "visitadescartada",
  "atribuido": {"datevalue": "2019-09-05 14:47:11"},
  "visitadescartada": {"datevalue": "2019-09-12 11:47:17"},
  "digitacaodescartada": {}
}

And here the index record will be status and datevalue from "atribuido" obj= ect
{
  "status": "atribuido",
  "atribuido": {"datevalue": "2019-09-05 14:47:11"},
  "visitadescartada": {"datevalue": "2019-09-12 11:47:17"},
  "digitacaodescartada": {}
} =09 =09 =09

Sent from the PostgreSQL - general mailing list archive at Nabble.= com.
------=_Part_634300_1812351077.1570297030805--