View view = db.getView("NameMessageEventMessages");
List<String> keys = new ArrayList<String>();
keys.add("Mail");
keys.add("2");
DocumentCollection dc = view.getAllDocumentsByKey(keys, false);
System.out.println("dc: " + dc.getCount());
StringBuilder sbc = new StringBuilder();
for (Document doc : dc) {
sbc.append(doc.getNoteID());
}
// System.out.println("nids: " + sbc.toString());
DocumentCollection allViewDocs = view.getAllDocuments();
System.out.println("all view docs: " + allViewDocs.getCount());
long elapsed = System.nanoTime() - start;
StringBuilder sb = new StringBuilder();
sb.append("Thread " + Thread.currentThread().getName());
sb.append(" *** ALL OPERATIONS COMPLETE elapsed time: ");