I receive these errors:
ERROR: key too large len:2448 max:1024
and
[conn89] unindex failed (key too big?)
I'm using MongoDB 2.4.9 . Any Idea how can I fix these errors?
I receive these errors:
ERROR: key too large len:2448 max:1024
and
[conn89] unindex failed (key too big?)
I'm using MongoDB 2.4.9 . Any Idea how can I fix these errors?
There is MongoDB issue about this error message
SERVER-11209: ERROR: key too large len:6597 max:1024 6597
And main issue with full explaination
SERVER-5290: fail to insert docs with fields too long to index, and fail to create indexes where doc keys are too big
The main trouble is limited size of index keys. If your index key larger that 1024, document cannot be indexed and will be unfindable in Mongo for some queries even if successfully inserted.
You have to revise your indexes and use smaller keys.
There are several ways to solve this problem depending on the real case. See my answer: https://stackoverflow.com/a/40422313/1647971