How can we configure multiple buckets and the tell couchbase to look into a bucket ?
I am using java sdk
You would need to create a separate connection to each bucket. The is not a way to have one connection and switch between buckets.
In addition to Mike comment, I wand to highlight the fact that you should not create "too much" bucket in your cluster. The best practice is to have a max of 10 buckets for a cluster, as you can see here :
This is due to the fact that most of the server side activities (memory, replication, I/O, views, ..., ...) are "per bucket".
© 2013 COUCHBASE All rights reserved.