def _do_table_diff(current_index_set, new_index_set):
    """Utility function to perform a couple of set operations"""
    indices_to_insert = new_index_set - current_index_set
    indices_to_delete = current_index_set - new_index_set
    return (indices_to_insert, indices_to_delete)