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

add ability to atomically replace view definition

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query
    • Fully Compatible

      New description:
      Allow existing queries to continue running when view definition is updated via "collMod" command.

      Old description:
      There's a common pattern used in reporting where all applications point to collection1 and meanwhile a new version called collection2 is being populated. When it's done, DBAs want to atomically "replace" collection1 with collection2.

      This can be done with views, but since we don't support updating view definitions or creating views while dropping existing view definition, they would have to drop view and then re-create view which is not transparent to the applications.

      This ticket is to track adding an option to createView to drop/overwrite existing view definition.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: