I have a database with around 2 million documents. This database contains a lot of duplicate documents. I wrote a map reduce function in CouchDB-Futon
, which removes the duplicates. Now I want to get the values of this view in my python script.
import cloudant
account = cloudant.Account('Cricket-Harvestor')
db = account.database('Cricket-Analysis')
# view = Over here I want to reference the view I created in CouchDB futon.
for doc in view:
# and so does this!
print doc
Could someone please guide me over here? I have also referred below url:
https://pythonhosted.org/CouchDB/mapping.html
This uses couchdb-python
library. I am creating and storing documents using the same library. But it seems to not serve purpose in getting data out of multiple documents from a view, which was created on CouchDB-Futon
.