Hey,
I was thinking of map reduce but I don't want to make a collection for
every user.
maybe to distinct with map reduce and to catch from the new
collection but it will need to synch the collections.
Also in php I cannot make map reduce to store in a temporary
collection just for the operation. As I said I have 24 000 users so it
will mean 24 k different collections?
I think normally should be made by finding with sorting and then
reduce ? Something like:
db.reports.find(criteria).sort().distinct() but it does not work.
Regards,
Yasen