Hello,

Sometimes the async get is used like this: 

    GetFuture<Object> future = client.asyncGet(createQualifiedKey(table, 
key));
    Object document = future.get();


But is this just the same as client.get() from a performance perspective? 
ie if the future.get happens immediately after the asyncGet?

Secondly are there recommendations on how to effectively use the bulkGet ?

For instance 
BulkFuture<Map<String,Object>> futures[0] = asyncGetBulk(collection<String);
BulkFuture<Map<String,Object>> futures[1] = asyncGetBulk(collection<String);
BulkFuture<Map<String,Object>> futures[2] = asyncGetBulk(collection<String);
BulkFuture<Map<String,Object>> futures[3] =asyncGetBulk(collection<String);

would this be the best approach?

while (workToDo) {
    process(futures[0]);
    process(futures[1]);
    process(futures[2]);
    process(futures[3]);

}

ie loop around the futures until they are complete?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to