openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

Caching Expensive Queries with Materialized Views in PostgreSQL

REFRESH MATERIALIZED VIEW customers_with_revenue;

If your data doesn’t change very frequently, you might want to consider using a TRIGGER to execute the refresh-statement automatically.