How to get list of all documents in couchbase?

I want to list all documents in couchbase and select only few fields; I was earlier using views but since our document size can be more than 1 Mb then some of the documents got skip. So could you please suggest a better way to do this?


Hi -

The 1MB limit for indexing can be changed, but the documentation at the time of writing is limited. If you look at /opt/couchbase/etc/couchdb/default.ini you will find a setting called max_kv_size_per_doc. Setting this 0 (zero) will remove the limit for indexing or you can provide a sensible (for your use-case/domain) limit.

Note that you’ll probably have to restart CB for the setting to take effect.



Thanks Ill try that