I’ve created a test program that bulk imports data in batches. I’m using the C SDK (version 2.60) with Couchbase Server (4.1.1-5914 CE).
I’ve noticed that, unless I’m doing something wrong, using lcb_store is faster than using lcb_store3! To import 1 million documents, using lcb_store takes 50 seconds whilst lcb_store3 takes 80 seconds.
I’m putting commands into an array (size=1000), then call lcb_store and lcb_wait whenever the array becomes full.
I’m creating a new command and immediately call lcb_store3, then call lcb_wait3 after every 1000 commands.
lcb_store3 has replaced lcb_store, but has there been a performance regression? Or am I doing something wrong? lcb_store will presumably be removed from the API in a future release, because it’s in api-legacy.h?
Thanks in advance,