https://github.com/jackc/mat-view-strat-pg
Materialized View Strategies Using PostgreSQL
https://github.com/jackc/mat-view-strat-pg
Last synced: about 2 months ago
JSON representation
Materialized View Strategies Using PostgreSQL
- Host: GitHub
- URL: https://github.com/jackc/mat-view-strat-pg
- Owner: jackc
- Created: 2015-04-17T19:17:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-22T19:56:46.000Z (about 10 years ago)
- Last Synced: 2025-01-26T07:08:23.446Z (4 months ago)
- Language: PLpgSQL
- Size: 277 KB
- Stars: 61
- Watchers: 8
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Materialized View Strategies Using PostgreSQL
This repository contains the test data and code for this blog post: http://hashrocket.com/blog/posts/materialized-view-strategies-using-postgresql
To load test data:
createdb pg_cache_demo
psql -f accounts.sql pg_cache_demo
psql -f transactions.sql pg_cache_demo
psql -f postgresql_view.sql pg_cache_demo
psql -f postgresql_mat_view.sql pg_cache_demo
psql -f eager_mat_view.sql pg_cache_demo
psql -f lazy_mat_view.sql pg_cache_demo