I was wondering how much more intensive grouping queries are in
general. I am considering using grouping queries as my primary query
because I have the need to store a document as pieces with varying
access controls, for instance a portion of a document a user can see
but an admin can see the entire thing (I'm greatly simplifying this).
My thought was to do a grouping request and group on a field which
contained a key which the documents all shared, but I am worried about
how well this will perform at scale. Any thoughts/suggestions on this
would be appreciated.