Search Postgresql Archives

Re: decompose big queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 5, 2018 at 3:39 PM, hmidi slim <hmidi.slim2@xxxxxxxxx> wrote:
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?

Views are another solution.


Though while "building views upon views" is not uncommon, and it does increase the readability of each individual view, it add update fragility to the system.

Encapsulating high-level API concepts in functions and then writing queries within those functions with the benefit of views is one possibility.  Your client access needs and general data model are necessary to choose a preferred design.

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux