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

add ability to atomically replace view definition

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: