We are using 4.6.3 Any quick suggestion would be appreciated, if couchbase is capable to do this at server level or should this be dealt with piece of code to compare.
Thank you. I was trying to fetch the document Ids with duplicate data in fields array. The above n1ql works on smaller set of data, but not with millions of document. Alternatively, tried to retrieve the docIds using view, without any luck. Ref - https://blog.couchbase.com/want-get-rid-documents-duplicate-content/
That resulted in ‘reduction too large’ errors. Any clue to do this other than from client side {code} to identify the duplicate documents. Final goal is to delete all the duplicates from couchbase.