360000 10000 1000 jdbc:postgresql://localhost:5432/test test test 600000 jdbc:postgresql://localhost:5432/test test test test select coalesce(-1,max(id),-1) as key from dest insert into public.dest( id, test_int, test_text, test_ts )values( ?::bigint, ?::integer, ?::text, ?::timestamp with time zone )ON CONFLICT(id) DO UPDATE set test_int = EXCLUDED.test_int, test_text = EXCLUDED.test_text, test_ts = EXCLUDED.test_ts WHERE dest.test_int = EXCLUDED.test_int OR dest.test_text = EXCLUDED.test_text OR dest.test_ts = EXCLUDED.test_ts