Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1708

Documentation isn't clear on what a 'blocking index build' is

      The documentation correctly states that a foreground index build is a blocking operation. However, it does not explain what this means.

      When a foreground index build is occurring on a particular collection in a particular database, it holds a write lock for that database for the entire duration of the index build, and does not release it until the index build is complete. This means that while the index build is ongoing:

      • You cannot access (read, insert, update, delete) any documents in any collection in the same database as the index build
      • You cannot perform any operation that requires a read or write lock on all databases ( "listDatabases" comes to mind, but there are probably others ).

      If and when collection-level locking gets implemented, this will change.

            Assignee:
            zack.brown@10gen.com Zack Brown
            Reporter:
            william.zola@10gen.com William Zola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 37 weeks, 2 days ago