You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
iterview does not work for views on which you specify reduce in the options. #270
So since your doing a reduce there is no "id" value, and it will throw an exception. It would be nice to fix this, but I think you would have to do a skip.
changed the title [-]iterview does not work for views on which you specify reduce.[/-][+]iterview does not work for views on which you specify reduce in the options.[/+]on Jan 1, 2016
Hmm, it feels like it might work with startkey, but without startkey_docid. Perhaps you can give that a whirl? The iterview() code could only pass startkey_docid if reduce is not specified, or even when id is not available on the resutl.
Specifying a startkey does not appear to help. It appears for the first batch that 'id' is available, but on the second batch (i.e. next iteration) the id is not available.
When doing a reduce, isn't each key unique, even for different group levels? Seems like it should be feasible to just omit the startkey_docid when reduce is True. I'm trying this out now.
Activity
[-]iterview does not work for views on which you specify reduce.[/-][+]iterview does not work for views on which you specify reduce in the options.[/+]djc commentedon Jan 4, 2016
Hmm, it feels like it might work with
startkey, but withoutstartkey_docid. Perhaps you can give that a whirl? Theiterview()code could only passstartkey_docidifreduceis not specified, or even whenidis not available on the resutl.mountainpaul commentedon Mar 18, 2016
Specifying a startkey does not appear to help. It appears for the first batch that 'id' is available, but on the second batch (i.e. next iteration) the id is not available.
mountainpaul commentedon Mar 18, 2016
Changing client.py at line 870 from
fixed my issue, but in my specific case the key was unique because of the group level.
nedgar commentedon Oct 13, 2016
When doing a reduce, isn't each key unique, even for different group levels? Seems like it should be feasible to just omit the startkey_docid when reduce is True. I'm trying this out now.