I have a document with an embedded array. The array is just a bunch of strings. I recently came across some performance issues, so I decided to create an index. But it won't allow me to because the "key is too large to index".
I'm using AWS DocumentDB.
A sample doc looks like this:
{
_id: (mongoID),
id: (uuid),
employees: [(uuid of another user), ...]
}
I saw the question Cannot create index in mongodb, "key too large to index" but I didn't really see how the solution applies to my question.