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
One thing you can do is remove all indexs, do your inserts, and then recreate the indexes.