} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
CouchDbInstance dbInstance = new StdCouchDbInstance(couchClient);
//cleanup
cleanUp(dbInstance);
CouchDbConnector db = null;
// System.out.println("data loading (1 write per document)");
// for(int i=0;i<5;++i){
// System.out.println("test "+(i+1));
// cleanUp(dbInstance);
// cleanRevOrders(orders);
// cleanRevOrders(orders2);
// db = dbInstance.createConnector("orders", true);
// testOrdersLoad(orders, db);
// testOrdersLoad(orders2, db);
// }
db = dbInstance.createConnector("orders", true);
System.out.println("data loading (bulk - 1000 documents in write)");
for(int i=0;i<5;++i){
System.out.println("test "+(i+1));
cleanUp(dbInstance);
cleanRevOrders(orders);
cleanRevOrders(orders2);
db = dbInstance.createConnector("orders", true);
testOrdersBulkLoad(orders, db);
testOrdersBulkLoad(orders2, db);
System.out.println("\n");
}