All, I've added an RFC to introduce covering index functionality to Mango JSON indexes. It's in a pull request at:
https://github.com/apache/couchdb/pull/4410 The aim is to allow users to create index and query combinations that operate as fast as views when searching for data (as opposed to aggregating it via reduces). It's a logical extension to my recent fields pushdown PR (https://github.com/apache/couchdb/pull/4394). Overall, I'm interested in addressing some of the low- and mid-hanging query performance fruit within Mango. This work touches more places than the previous work, so I figured that it was RFC worthy. And it'd be nice not to create a PR with some fatal flaw to it :D One question I had on this is whether RFCs should be frozen once approved, or whether I should look to keep it up to date with changes in the code? The Bylaws don't really cover whether they are living documents or records of what the community agreed on at a point in time. Anyway, cheers for having a look, -- Mike.