I have a use case for an aggregate query across the entire db and all buckets, I'm wondering the best query method to use, leaning towards multiple secondary index calls. This won't be a frequently used feature, possibly invoked once a week or so via scheduled job or something.
Some records have a value in their meta attribute that I'd like to match/target for the selection.
From what I've read, secondary index looks great but it is limited to a single bucket? I also saw "list buckets", which has warnings about production use, though not sure if that's applicable to such infrequently used functionality. Thought maybe i could list buckets then perform the secondary index query on each.
Is there a better way? MapReduce seems heavy, having to load every KV of the file system. Search seem possible too but index setup/maintenance seems overkill if there's an easier way.