Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-postgres-refresher-1.0.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page