DEV Community

Discussion on: The What and Why of PostgreSQL Views

Collapse
 
walker profile image
Walker Harrison

awesome stuff. What happens as the time sensitivity of your data increases? perhaps GA enrollment data isn't the best example, but for something like finance or trading, does it make sense to update a view multiple times per second or at that point is it no better than just querying the original DB every time?

Collapse
 
annarankin profile image
Anna Rankin

Thanks, Walker! :D If you need up-to-the-second results, I'd stay away from a materialized view and go with a regular ol' view and generate results on the fly. In my experience, materialized views are best for things that don't change often.