Skip to main content

12. Views

Views let you package a query as a reusable object. They are commonly used for:

  • simplifying complex joins
  • defining stable interfaces for reporting
  • limiting access to sensitive columns

Decision Guide

NeedPreferNotes
Always-fresh resultsViewExecutes underlying query at read time
Fast reads with refreshable snapshotMaterialized viewStores results; requires REFRESH
Access control boundaryView + grantsGrant on view, restrict base tables

Lessons

What's Next