Author:
Source
PostgreSQL views are a useful tool to make query logic reusable and maintainable. This talk will cover their pros and cons, a couple of real-world use cases, and how to use them in Rails apps using the Scenic gem: https://www.youtube.com/watch?v=gdrscLBNvDo