batch loading by unique attribute