Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8216

Add rolling index creation

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Developer Tools
    • 3
    • Iteration Jupiter, Iteration Kuiper Belt

      If useSupportsRollingIndexCreation() returns true, then we will show a new checkbox in the create index modal. See the Figma designs for details.

      If the user checks the box to create a rolling index, then we will use the Atlas API (see below) to create the index rather than the driver. We will extend the thunk action createIndex(). It will create the index and check the result using the usual MMS pattern to see if there were any immediate validation errors. Similar to how dataService.createIndex() can fail quickly in some cases. Immediately afterwards, if there were no errors at that point, the modal can close. If there were validation errors they would show just like the errors do when you create a normal index via dataService.

      Unlike for regular index creation, the createIndex() thunk action will not wait for the index to be created (or fail) and then remove the in-progress index. That will be synchronized when polling for indexes. See the polling explanation below.

            Assignee:
            Unassigned Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: