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

Refactor ViewCatalog validation checks into a ViewValidator class

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Query Optimization

    Description

      Currently, the ViewCatalog has some duplicated code for validating views in the insert and modification paths. It also is lacking in other validation checks, including

      • parsing the view pipeline
      • verifying that the size of the view definition is < 16 MB

      We should make a ViewValidator class that abstracts out this common code and implements these additional checks.

      In addition, this validator should be in its own library in the views directory. This would allow us to move the ViewGraph cycle detection there and remove a dependency on aggregation in the core views library.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: