I have this data referring to a table. I have to insert it into a table using sql alchemy. I would like to insert a batch of rows in the table using rows list (now I have three rows but I will have around 50.000), like bluk in elasticsearch but using postgres. Could you give me any idea or code example? Thanks in advance for your help.
fields = ["NAME", "MACHINE", "PRE", "DATE", "COMP"]
rows = [
["ECO", "A07", 6, "2016-03-07", "Card"],
["LIN", "A01", 1, "2016-03-07", "Reader"],
["SUM", "A02", 2, "2016-03-07", "Scanner"]
]