大家讲道理2017-04-17 13:15:09
Design like this:
{
player: {
id: 123,
name: 'zhangsan',
register_time:
},
login_time:
}
Then aggregate
First filter by register_time, then group by login_time
I guess you still don’t know how to...
Also, I think, don’t do this, it requires a lot of calculations