I have a bucket of user actions and I would like to run queries that sample the recent documents of the bucket.
I also like to be able to filter with field=value in this sample.
What is the best way of doing that?
As I can see it, the only way of doing it is to create a view that emits all the document in the map function. I see everywhere that this is a bad practice, is there another way of doing it?