Are views in PostgreSQL completely recalculated every time one of underneath tables are changed?
More precisely, if I have aggregate view over table votes
, will complete recalculation of a view be needed, when any changes are made in votes table?
If I expect often changes of votes
table, what are alternatives to aggregate view? I need polylogarithmic time complexity of simple querys.