360 Zhihui Cloud Developer
May 13, 2021 · Databases
Why MongoDB’s Unique Index Fails When Index Keys Exceed 1024 Bytes
The article reproduces a MongoDB issue where queries using a hashed shard key return no results and a compound unique index silently accepts duplicate documents, explains that the failIndexKeyTooLong parameter allows oversized index entries to be stored without indexing, and shows how to reproduce and fix the problem.
Hash ShardingIndexMongoDB
0 likes · 34 min read