mypebble / django-pgviews

Fork of django-postgres that focuses on maintaining and improving support for Postgres SQL Views.
The Unlicense
195 stars 41 forks source link

Sometimes Django 2.1.2 return this random error #43

Closed Oriphiel closed 5 years ago

Oriphiel commented 5 years ago

ProgrammingError: relation "misuper_stockitemmaterializedview" does not exist LINE 1: ...ct"."unit_stock", "misuper_product"."colors" FROM "misuper_s...

The error is random, because from 10.000 request, only 3-4 fails with that error in the endpoint. Any reason for that?

Oriphiel commented 5 years ago

I found the reason, so i close this issue.

pd: The problem was the command sync_pgviews. By default recreate all the views.