Postgres insert optimization

前端 未结 7 1628
一个人的身影
一个人的身影 2021-02-04 18:25

I have a script that generates tens of thousands of inserts into a postgres db through a custom ORM. As you can imagine, it\'s quite slow. This is used for development purpose

7条回答
  •  失恋的感觉
    2021-02-04 18:49

    One thing you can do is remove all indexs, do your inserts, and then recreate the indexes.

提交回复
热议问题