So I know Cloudant is based on couchdb. In one of my views that I get returned, I get a list of a lot of rows ex:
{"rows":[
{"key":[2015,10,7,"one"],"value":2},
{"key":[2015,10,7,"two"],"value":1},
{"key":[2015,10,7,"three"],"value":2}
....
]}
The above solution worked and was originally proposed here. However, now my data set is growing quite significantly & the # of rows can be 20k.
With the return object, there of course is the "count" for the # of rows. Rather than returning all of that data, I was hoping to run the output of this view through a list function as mentioned in couchdb here.
So I guess a few questions:
- Has anyone used the _list functionality in cloudant?
- Alternatively, would someone know a reduce & re-reduce function that would just give me the length of rows (i.e. # of keys?) Otherwise it takes way too long to return all of the data just to get a simple count of rows.
Thanks!