My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Does anyone know why connection to database get ideal or disconnected?

Yashu Mittal's photo
Yashu Mittal
·Jul 31, 2020·

1 min read

Facing a consistent issue with PostgreSQL database. For not using database after few minutes either on backend or some database client tool.

I think the connection between the cloud hosted database and database client tool goes into ideal state (or something), and because of that when I try to execute a query it continues to show the loading process and the query doesn't run.

Not sure, if that’s the valid reason for the issue.

In the process, after trying to run the query again and again, the database starts to work functional and it return the data on running the query.

I am facing this issue not only in database client tool but in the backend application too.

And every time it goes into ideal state, either I have to restart the backend application or re-connect from database client tool.

Did anyone of you face any similar issue? What are the ways to resolve this issue?