WiredTigerIndex :: insert: ключ слишком велик для индексации, ошибка 1180 - PullRequest
0 голосов
/ 15 мая 2018

У меня есть коллекция 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

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...