I have a SQL database and a list of python tuples with values ordered by column.
I simply want to insert the tuples into a SQL database, merged on some key columns, say, 'a', 'b', and 'c'.
I have a database connection but I don't know how to efficiently set up a SQL statement that does this.
It MUST be efficient, I have like 5 million rows.