postgres `REFRESH MATVIEW` manager
Project description
Installation
$ pip install django-postgres-refresher
settings.py
INSTALLED_APPS+=['django_postgres_refresher']
migrate
$ python manage.py migrate
Features
- admin interface
- refresh reports (
duration
,time
) and stat (count
,avg_duration
,min_duration
,max_duration
)
Examples
refresh matviews
python manage.py postgres_refresher
INSERT
to postgres_refresher_config
INSERT INTO postgres_refresher_config(schemaname,matviewname,"concurrently",seconds)
VALUES
('schemaname','matviewname',true,600),
('schemaname','matviewname2',true,600)
ON CONFLICT(schemaname,matviewname) DO NOTHING;
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-postgres-refresher-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb681a42e5e1b4f5378fe7b44d490c33f0aea67ae4f0d79a9f08d0fe90d8024 |
|
MD5 | 25eafd9298faa7e774eb5ee4c2d324c1 |
|
BLAKE2b-256 | 0adfd94e8a3a9346748356f2bebf99c724dd637f0983c9e845680a0b52682dee |