-
I open a connection to the database to make changes and then I want to close it, but I did not find something like db.close() in the documentation. I also see in the acebase-server logs that every time I call a function with a connection to the database, a new additional connection is created |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@meaningg if you are creating a new |
Beta Was this translation helpful? Give feedback.
@meaningg if you are creating a new
AceBaseClient
instance each time you are getting/updating data, you will get multiple connections if you don't close them. Best practice is to create 1AceBaseClient
instance (a single connection to the server), reuse it in your app and keep it open. If you do want to close the connection however, useclient.disconnect()