Hi Jan, That is a really interesting experiment. I was trying to benchmark _all_docs recently and I've noticed is that it will stream the results, so it returns the header and the start of the body before its done any actual work. I'm not 100% sure if that is the case when `key=` is used. You might have to adjust your benchmark to check for the first `{` to signify the start of a document.
Cheers Garren On Sun, Jul 12, 2020 at 3:37 PM Jan Lehnardt <j...@apache.org> wrote: > Hey all, > > based on a question in our new GitHub Discussion board, I got interested > in what is faster: retrieve a doc _rev with a HEAD request or with an > _all_docs?key=docid request. The results might be interesting for folks: > > > https://github.com/apache/couchdb/discussions/2996#discussioncomment-36190 > > Best > Jan > —