Managing Connections using the Java SDK with Couchbase Server

Hi,

I am using Couchbase in Java Application. I am opening cluster while starting the server and closing it before stopping the server. Is it good way to do it like this? or do we need to open and close cluster for every operation?.

Thanks
Vara Prasad.

There is a section about it in Java SDK documentation: https://developer.couchbase.com/documentation/server/current/sdk/java/managing-connections.html