What's a good approach for updating millions of rows independently?
I have a MongoDB database with millions of users in collection.
Another collection keeps activity related to users, with 3 entries types:
receive, open and click (email activity)
Based on it's own activity (compared to entire collection average) a user
needs to receive a flag daily: active, inactive, passive. I compute a
daily average for the entire collection. That was easy.
How would be a good approach to compute it for every user, compare it with
the whole AVG and add an attribute?
No comments:
Post a Comment