crea una collection per giorno: YYMMDD_ll
This commit is contained in:
parent
102d0fc973
commit
905d7ca936
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ func consumer() {
|
|||
}
|
||||
|
||||
for _, val := range allLogins {
|
||||
dt := fmt.Sprintf("lastlogin_%s", val.Date.Format("060102")) // stdYear+stdZeroMonth+stdZeroDay
|
||||
dt := fmt.Sprintf("%s_ll", val.Date.Format("060102")) // stdYear+stdZeroMonth+stdZeroDay
|
||||
if _, ok := bulk[dt]; !ok {
|
||||
for j := range dbs.mdb {
|
||||
b := dbs.mdb[j].DB(dbs.Database).C(dt).Bulk()
|
||||
|
|
Loading…
Add table
Reference in a new issue