rfc(per-doc-access): first draft
Addresses https://github.com/apache/couchdb/issues/1524
Are skip and limit query params expected to work as in existing versions?
@ermouth could you give an example?
@janl I mean a protected bucket may have interleaving docs of users A and B, like:
{_id: '01', _access:['A']}, {_id:'02', _access:['B']}, {_id: '03', _access:['A']}
What exactly _all_docs?limit=1&skip=1 will return for user A?
@ermouth empty result like if _id 02 didn’t exist. by-access-id is all docs in order of _access + _id and then any one authenticated users only gets their _access range, but can use that like regular by-id (_all_docs)
Sorry @janl I meant to add another note here the other day. Could you add a section on the data model for the new changes and _all_doc indexes.
@janl Can we get this merged please? Thanks. I'm merging all of the RFCs that don't have any other sort of blockers; @garrensmith 's requests haven't been dismissed/changed so I'm not going to robo-merge this one.
@wohali this RFC isn’t fit to be merged. If you want the PR queue clean, we can close this and I’ll reopen once I addressed all the comments.
closing this for now, I’ll open a new variant on the couchdb repo now that the docs repo is being retired.