Jianwei Zhang

Results 3 issues of Jianwei Zhang

MongoDB的sharding模式下Upsert操作要求必须指定sharding key,使用到Upsert操作的collection有:stat、job_latest_log,为了最小改动的方式解决这个问题; 针对job_latest_log,只需要创建collection时指定sharding key即可,不涉及代码修改: `db.runCommand({shardcollection:"cronsun1.job_latest_log", key:{node:1, hostname:1, ip:1, jobId:1, jobGroup:1}});` 针对stat,需要将其拆分为两个:stat、daily_stat,然后分别指定sharding key: ``` db.runCommand({shardcollection:"cronsun1.stat", key:{name:1}}); db.runCommand({shardcollection:"cronsun1.daily_stat", key:{name:1, date:1}}); ```

## Documentation Issue The logo of the official website is displayed abnormally ![Image](https://github.com/user-attachments/assets/570191e2-6754-47d9-a6aa-7cb651f93893) ## Location Provide a link or description of where this documentation issue exists or should exist (README,...

type: bug
type: documentation
good first issue
help wanted