ubuntu 22.04, mysql 8.0.35, postgresql 16.1, python 3.8.18, django 4.2
django default db = "mydb"
We have a large data set saved in "mydb", generating that takes a long time.
While using mysql db, I was able to fetch items from "mydb" like <ModelName>.objects.filter() in my test cases. I'm unsure if records are copied into "test_" db from "mybd" by django.
Then I switched to postgres, recreated the data. When I fetch the data in APiView, it's working fine. But in testcases all model queries return blank queryset.
Is there a workaround for testcases while using postgres so I would not have to recreate the data every time I run the tests ? Thanks.