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 details)

Uploaded Source

File details

Details for the file django-postgres-refresher-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-postgres-refresher-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5cb681a42e5e1b4f5378fe7b44d490c33f0aea67ae4f0d79a9f08d0fe90d8024
MD5 25eafd9298faa7e774eb5ee4c2d324c1
BLAKE2b-256 0adfd94e8a3a9346748356f2bebf99c724dd637f0983c9e845680a0b52682dee

See more details on using hashes here.

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