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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            harshad.dhavale@mongodb.com Harshad Dhavale
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: