'A context manager for notifying the store of bulk operations.'

@contextmanager
def _bulk_operations(self):

    try:
        course_key = self.root_block_usage_key.course_key
    except AttributeError:
        course_key = None
    with self.modulestore.bulk_operations(course_key):
        (yield)
