I
I
Ilya2021-11-09 00:04:24
PostgreSQL
Ilya, 2021-11-09 00:04:24

View vs materialized view and is it worth it with frequent data updates?

Should I use View or materialized view when the data is constantly changing and if so, which view is better?
For example, there is a chat.
And I want to know how many letters the user wrote. Users write letters constantly and many, many users.

Is it worth using view ? After all it on idea leads to recalculation of all I twist each time for table? Or view is somehow cunningly recalculated. Or will such views make a big load on the base?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Rozhnev, 2021-11-09
@RadioRedFox

In this case, the preferred trigger

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question