Couchbase Binary Collection import

We are currently using the default couchbase import tools (couchbase_cb_impoort_check) to import existing json documents into couchbase on startup.

Is there anyway to also load a complementary binary document that stores the latest counter? The idea is that we want to support insertion of new documents at the particular bucket and type with the next counter. (e.g. user_28 is the last document id imported, the next insert, we want to call binary collection increment and get back 29 so that we can insert the document id user_29. The involves having a separate document - user_count - that just has a single number in it. no field names)

echo "Importing initial data"

couchbase_cbimport_check json \
  --bucket lookup -d file:///data/lookup_userstatus.json -f list -g %type%#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

couchbase_cbimport_check json \
  --bucket lookup -d file:///data/lookup_userroletypes.json -f list -g %type%#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

couchbase_cbimport_check json \
  --bucket lookup -d file:///data/lookup_organization.json -f list -g %type%#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

couchbase_cbimport_check json \
  --bucket lookup -d file:///data/lookup_rank.json -f list -g %type%#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

couchbase_cbimport_check json \
  --bucket lookup -d file:///data/lookup_classification.json -f list -g %type%#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

couchbase_cbimport_check json \
  --bucket user -d file:///data/user_initialdata.json -f list -g %type%_#MONO_INCR# \
  -c 127.0.0.1 -u Administrator -p password

echo

Never mind, I decided that the better way to use a counter for the id’s we are incrementing will be using regular JSON documents.

Doesn’t look like couchbase_cbimport tool supports binary documents.