Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to refresh materialised view in case of multidb in django using manage.py? #42

Open
alokmahor opened this issue Feb 12, 2019 · 0 comments

Comments

@alokmahor
Copy link

I am using Postgresql as database in my django project. I am using materialised views also using django-pgviews which is django module for using materialised views in django.

To refreshing materialised views I use command below

python manage.py sync_pgviews

But now I am using multidb in my django project. Which is easily manageable like

python manage.py migrate # This will apply sql to default database
python manage.py migrate --database=tableau # This will apply sql to tableau database

I was expecting --database=tableau option to work with python manage.py sync_pgviews also. But this does not work.

python manage.py sync_pgviews # refresh default db views
python manage.py sync_pgviews --database=tableau # This does not work

How can I refresh materialised view of other database using django using manage.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant