use table for PK in custom batch method