Skip to content

Document collation configuration and usage in 1.2 - #102

Open
CorneliusOsei2 wants to merge 2 commits into
documentdb:mainfrom
CorneliusOsei2:docs/collation-guide
Open

CorneliusOsei2 wants to merge 2 commits into
documentdb:mainfrom
CorneliusOsei2:docs/collation-guide

Conversation

@CorneliusOsei2

@CorneliusOsei2 CorneliusOsei2 commented Nov 16, 2026 •

Copy link
Copy Markdown

Summary

Add a worked collation guide for released DocumentDB 1.2, covering:

  • PostgreSQL GUC setup, the purpose of each setting, and verification in gateway sessions, without listing GUC defaults.
  • All documented comparison options, with case, accent, punctuation, numeric, Turkish, French, and Unicode examples and expected results.
  • Equality, ranges, membership, regex behavior, raw wire commands, grouping, min/max, expressions, arrays, and $lookup.
  • Updates, deletes, findAndModify, per-entry batched collation, and upsert behavior.
  • Index metadata and explain, matching and compound indexes, multiple collations, case-insensitive uniqueness, and null/missing conflicts.
  • Searchable troubleshooting, released-version limitations, and explicit sample cleanup.

The guide follows the public v1.2-0 implementation, including its feature gates and limitations. Collection-default collation and $group with $addToSet are not supported in this release. Update the existing configuration and command references to agree with those boundaries and the supported collated unique-index path. Document the lack of collated $expr/join index pushdown and the runtime-verified German phonebook comparison gap.

Validation

  • Executed all 29 JavaScript blocks from the guide, including both expected duplicate-key failures and sample cleanup, against ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.2.0.
  • Ran the same workload against native MongoDB 7.0 and 8.0.32 reference servers.
  • Passed 42 result assertions on each server.
  • Executed all three SQL blocks against the released image and verified all ten relevant active settings.
  • Confirmed that the released DocumentDB image rejects collection-default collation and $group with $addToSet.
  • Confirmed that misplaced top-level collation on raw update/delete commands is silently ignored in 1.2, and documented the required per-entry placement.
  • Compared German phonebook matching with unambiguous Unicode input against both native reference servers and documented the observed 1.2.0 limitation.
  • Checked front matter, navigation against its repository schema, relative links and anchors, fenced blocks, and whitespace.

A full website build was not run. The repository delegates publication to the website deployment workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant