Re: decompose big queries

From: Edson Carlos Ericksson Richter <richter(at)simkorp(dot)com(dot)br>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: decompose big queries
Date: 2018-04-06 13:06:28
Message-ID: 40cd1824-1dd0-1aad-2c8d-c34ee510b5c5@simkorp.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Em 05/04/2018 19:39, hmidi slim escreveu:
> Hi,
> I want to know what are the best practice to use in order to decompose
> a big query which contains so many joins.Is it recommended to use
> stored procedures ? or is there any other solution?
>

I don't know if there are best practices (each scenario requires its own
solution), but for plain complex SELECT queries, I do use "WITH"
queries... They work really well.

https://www.postgresql.org/docs/9.6/static/queries-with.html

Regards,

Edson

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pinker 2018-04-06 13:35:56 Re: decompose big queries
Previous Message Tomas Vondra 2018-04-06 12:39:56 Re: ERROR: found multixact from before relminmxid