The general consensus is that you close the database connection after you have finished using it.
For example, it may be after using the connection only once at startup, you should close it after this initial use.
You might want to use the database connection again, but in this case you should leave it open.
source share