crea una collection per giorno: YYMMDD_ll

This commit is contained in:
Michele 2018-05-29 15:44:57 +02:00
parent 102d0fc973
commit 905d7ca936

View file

@ -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()