Psycopg2, Postgresql, Python: Fastest way to bulk-insert

前端 未结 8 1371
轻奢々
轻奢々 2020-11-30 22:48

I\'m looking for the most efficient way to bulk-insert some millions of tuples into a database. I\'m using Python, PostgreSQL and psycopg2.

I have created a long lis

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 23:08

    The first and the second would be used together, not separately. The third would be the most efficient server-wise though, since the server would do all the hard work.

提交回复
热议问题