Large documents are missing


#1

I have bunch of documents sized from 2K to 10KB.
When I use

CouchbaseClient#set(id, doc);

All of the docs that are over 2.5KB are missing. (or at lease not being counted in the ‘item count’ column under Data Bucket tab in Admin view.

It seems like I need to put sleep statement whenever I put large docs on couch server.

Any idea?


#2

Normally, a few KB is not what I would mean large.

Are you maybe adding a TTL expiration without knowing it? Also, the UI can take some time to be updated. To verify it has been stored, go do a get() afterwards to see if the document has been stored on the server already.

Also, the check the return value of the write operation if it was successful or if the operation failed for some reason.