1. Robo 3T copy value 的字符串中含有 bom 头
坑了一天
2. Mongo dump 与 restore
mongodump
mongodump -h 127.0.0.1 --port 27017 \
-u user -p password \
-d sync-iris -o /data/db/dump/(output dictory)
mongorestore
mongorestore -h 127.0.0.1 --port 27017 \
-u user -p password \
-d sync-iris-fuxing --dir /data/db/dump/sync-iris(from dictory)
Tips: restore 时支持重命名 db_name
3. $lookup
关联查询
详见: