Re: Performance on JSONB select

From: PegoraroF10 <marcos(at)f10(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Performance on JSONB select
Date: 2019-10-05 17:37:10
Message-ID: 1570297030805-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

No, no, no, partial index is the where clause of it and I´m not talking about
that.
I´m talking about datevalue, which will be used one or another, depending on
status value

This record iindex will be status and datevalue from "visitadescartada"
object
{
&nbsp;&nbsp;"status": "visitadescartada",
&nbsp;&nbsp;"atribuido": {"datevalue": "2019-09-05 14:47:11"},
&nbsp;&nbsp;"visitadescartada": {"datevalue": "2019-09-12 11:47:17"},
&nbsp;&nbsp;"digitacaodescartada": {}
}

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

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Miles Elam 2019-10-05 20:27:38 Re: Event Triggers and Dropping Objects
Previous Message bhargav kamineni 2019-10-05 17:26:27 Re: PMChildFlags array