Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37491

Allow for creating a view in one database sourced from a collection in another database

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization

      Currently, it is not possible to create a view in one database sourced from a collection in another database. As mentioned in db.createView()  documentation, the `source` parameter for the view does not include the database name and implies the same database as the view to create. It is implicitly assumed (and in fact, required), that the source collection must be in the same database as the view being collected.

      This is a feature-improvement request, to allow for creating a view in one database sourced from a collection in another database.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            harshad.dhavale@mongodb.com Harshad Dhavale
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: