Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8905

Document the behavior of views and collation

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 3.4.0
    • None
    • Server
    • 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

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 50 weeks, 1 day ago