I'd like to optimise a Couchbase Lite query on iOS in two steps:
- create a view+index which sums only the necessary fields required.
- make a pair of similar views that are aggregate sums based on the first view.
Is this possible to do? Eg to make a 'view of a view'?