yspro
yspro

Reputation: 1658

Unique users tracking with MongoDB

How to track unique users' stats per day with MongoDB? My first idea was to use upsert with $addToSet (adding ip to ips array and then count array.length), but this method has restrictions (f.e. collection's size).

Upvotes: 1

Views: 609

Answers (1)

sdot257
sdot257

Reputation: 10366

If you shard it, I dont think you'll have any issues.

See this link

Upvotes: 1

Related Questions