Details
-
Task
-
Resolution: Done
-
Critical - P2
-
None
-
None
Description
We need documentation on the interaction of views and collation. It should probably go in the reference page for collation, and perhaps also in the read-only views page (or at least a link).
Behavior:
- Like collections, views have a default collation. You can specify a default collation for a view at creation time; if no collation is specified, the view's default collation is the "simple" collator.
- A view on a collection completely ignores the collection's default collation.
- A view on another view must have a collation that exactly matches the backing view – see below.
- The default collation of a view cannot be overridden. The following operations should fail with an OptionNotSupportedOnView error:
- Specifying a per-operation collation that differs from an operation involving a view, whether directly or via $lookup or $graphLookup
- Performing any operation that involves multiple views (i.e. via $lookup or $graphLookup) where the views don't all have the same collation
- Creating a view to depend on another view that does not have a matching collation
- Modifying a view to depend on another view that does not have a matching collation
Attachments
Issue Links
- documents
-
SERVER-25186 Add support for a default collation for views
-
- Closed
-