'Update a definition, respecting the current bulk operation status
(no data will be written to the database if a bulk operation is active.)'

def update_definition(self, course_key, definition):

    bulk_write_record = self._get_bulk_ops_record(course_key)
    if bulk_write_record.active:
        bulk_write_record.definitions[definition['_id']] = definition
    else:
        self.db_connection.insert_definition(definition, course_key)
