The best practice is to use COPY, which you did. You should investigate the slowness, which looks abnormal. Do you have 57 GIN indexes or a slow trigger on the table?
COPY