Reputation: 147
Two Couchbase related questions...
Upvotes: 0
Views: 753
Reputation: 28301
Bucket
and probably a lot of N1QL use cases will only span 1 bucket.However to answer your question, it doesn't matter which Bucket
reference you use, both will work.
Cluster.create()
will compile the list of seed nodes to bootstrap from and prepare the ConfigurationManager so that the SDK can receive updates from the cluster. The actual connection, authentication dance and establishment of main resources is done when calling openBucket
.Upvotes: 1