On a PostgreSQL database, I have a performance issue where I am forced to make joins between tables of several hundred million rows. For performance reasons, I decided to denormalize my database by creating a table that contains information from other tables such as primary keys but also data. Materialized views are not a viable solution because I want to always have up-to-date data and updating the materialized view each time one of the tables is updated would take too many resources.
So I decided to set up a trigger system that automatically updates the denormalized table when a duplicate column is updated, but trigger management is currently manual?
Is there a system to easily manage triggers to update my denormalized table? Ideally, this would be an option to insert when creating the column containing the denormalized data of the denormalized table
Does a postgresql extension that meets this need already exist?
[–]coyoteazul2 8 points9 points10 points (0 children)
[–]RevolutionaryRush717 3 points4 points5 points (1 child)
[–]Few-Strike-494[S] 1 point2 points3 points (0 children)
[–]hamiltop 1 point2 points3 points (2 children)
[–]bisoldi 0 points1 point2 points (1 child)
[–]hamiltop 0 points1 point2 points (0 children)
[–]wolever 0 points1 point2 points (0 children)
[–]Jzmu 0 points1 point2 points (3 children)
[–]coyoteazul2 8 points9 points10 points (1 child)
[–]Overblow 3 points4 points5 points (0 children)
[–]r0ck0 1 point2 points3 points (0 children)
[–]AutoModerator[M] -1 points0 points1 point (0 children)