mongoid icon indicating copy to clipboard operation
mongoid copied to clipboard

MONGOID-5590 - Docs: Clarify that shard key dot limitation comes from MongoDB server

Open johnnyshields opened this issue 2 years ago • 3 comments
trafficstars

As per DOCS-15993, the limitation of dot in shard keys comes from MongoDB server, not from Mongoid.

This is a follow-up to https://github.com/mongodb/mongoid/pull/5588

johnnyshields avatar Apr 13 '23 06:04 johnnyshields

@jamis ready to merge.

johnnyshields avatar Nov 13 '23 17:11 johnnyshields

@jamis any reason why this doc-only PR can't be merged?

johnnyshields avatar May 10 '24 21:05 johnnyshields

@johnnyshields -- I think this might not be true anymore. For v6 of the database, I think you're right (https://www.mongodb.com/docs/v6.0/core/dot-dollar-considerations/), but the current docs (https://www.mongodb.com/docs/manual/core/dot-dollar-considerations) make no mention of that restriction. The page you're linking to in the docs seems to flatly contradict the statement that dots and dollar signs are not supported.

If you can find another page for the current server version (v7) that says that dots and dollar signs are forbidden in shard keys at the server level, please do update the PR. Otherwise, I think this PR might be obsolete.

jamis avatar May 13 '24 15:05 jamis