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

Changes don't get committed to database when using pool. #18

Closed
pooryorrick opened this issue Feb 11, 2021 · 1 comment
Closed

Changes don't get committed to database when using pool. #18

pooryorrick opened this issue Feb 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@pooryorrick
Copy link

I can see that there is a closed issue with similar problem, but no resolution was found. So I will dare to open a new one.

I'm running Django 3.1.5 app and postgres db on Azure, and experiencing 1,5-2 second latency on all views that require database connection. This particular package was suggested by Microsoft support, and it does indeed reduce response time down to 150-200 ms, which is great. There is no problem with retrieving data from the db, however saving data is very inconsistent across the app, but still looks consistent for a given view, meaning that some views consistently succeed with saving data, while other views consistently fail...

I have tried to add AUTOCOMIT=True to settings config, but it didn't help

Any suggestions on how to fix the problem , or where to start looking?

@pooryorrick
Copy link
Author

@altairbow any ideas or suggestions?

@altairbow altairbow added the invalid This doesn't seem right label May 21, 2021
@altairbow altairbow added bug Something isn't working and removed invalid This doesn't seem right labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants