I am trying to update and insert rows in a large postgres table comprising approx 30 millions of records using psycopg2 in python, I am doing so in batches of 100K records(~