我有一个mongoDB集合。
我正在尝试使用mongoose插入以下记录。
{
"employeeColumns": {
"headCount": ["empId","designation","country","city","branch","vertical","client","process"],
"headCountRatio": ["empId","designation","country","city","branch","vertical","client","process"],
"genderRatio": ["empId","designation","country","city","branch","vertical","client","process","gender"],
"averageCtc": ["empId","designation","country","city","branch","vertical","client","process","ctc"],
"accuracy": ["empId","designation","country","city","branch","vertical","client","process","accuracy"],
"productivity": ["empId","designation","country","city","branch","vertical","client","process","productivity"],
"attrition": ["empId","designation","country","city","branch","vertical","client","process","employmentStatus"],
"allowances": ["empId","designation","country","city","branch","vertical","client","process"]
},
"costColumns": {
"branchCost": ["country","city","branch"],
"clientCost": ["client"],
"verticalCost": ["vertical"]
},
"revenueColumns": ["client"]
}
当我尝试插入上述文档时,我收到以下错误
WiredTigerIndex :: insert: key too large to index, failing 1180
我没有插入一张巨大的唱片。只是上面的文件,我不知道为什么我得到这个错误。我是MongoDB的新手