'A context manager for notifying the store of bulk operations. This affects only the current thread.
In the case of Mongo, it temporarily disables refreshing the metadata inheritance tree
until the bulk operation is completed.'

@contextmanager
def bulk_operations(self, course_id, emit_signals=True, ignore_case=False):

    try:
        self._begin_bulk_operation(course_id, ignore_case)
        (yield)
    finally:
        self._end_bulk_operation(course_id, emit_signals, ignore_case)
