1) should use $push instead of $pushAll as $pushAll is deprecated
2) delayTime should be array instead of document
3) query using carrierCode should be sufficient I guess ?
4) date and times should use Date instead for sorting or querying in the future
5) should not update document like that, instead your query should use aggregation. Otherwise, total need to be updated each time
Joined: Aug 17, 2013
Thanks for your reply! How about this case? My doc format uses com.mongdb.BasicDBList