Skip to content

Instantly share code, notes, and snippets.

@ingenthr
Created February 7, 2012 23:56
Show Gist options
  • Save ingenthr/1763148 to your computer and use it in GitHub Desktop.
Save ingenthr/1763148 to your computer and use it in GitHub Desktop.
turning off optimization with CouchbaseClient
List<URI> baselist = new ArrayList<URI>();
baselist.add(new URI("http://localhost:8091/pools"));
CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
cfb.setShouldOptimize(false);
CouchbaseClient myclient = new CouchbaseClient(cfb.buildCouchbaseConnection(baselist, "default", "default", ""));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment