tonysun83 commented on issue #3948:
URL: https://github.com/apache/couchdb/issues/3948#issuecomment-1068776922


   @nickva A trivial approach which you probably considered is to mask the 
`dict:fetch` by catching the badargs and storing `undefined` for the > 100 
case. Assuming that the < 100 case simply has "error" : "undefined" as part of 
it's 201 response, then this trivial change would align with it. 
   
   We know generally why `Results` is not fully populated (as you mentioned). 
More importantly, I don't think it's possible to write the code in such a way 
where we can guarantee len(AllDocs) == len(Results). Any solution would 
probably entail populating the missing result with place holder such as 
`undefined`. What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to