title: Massive inserts with pg-promise
body: <p>I'm using <a href="https://github.com/vitaly-t/pg-promise" rel="nofollow noreferrer">pg-promise</a> and I want to make multiple inserts to one table. I've seen some solutions like <a href="https://stackoverflow.com/questions/37300997/multi-row-insert-with-pg-promise">Multi-row insert with pg-promise</a> and <a href="https://stackoverflow.com/questions/34990186/how-do-i-properly-insert-multiple-rows-into-pg-with-node-postgres">How do I properly insert multiple rows into PG with node-postgres?</a>, and I could use pgp.helpers.concat in order to concatenate multiple selects.</p>
  
  <p>But now, I need to insert a lot of measurements in a table, with more than 10,000 records, and in <a href="https://github.com/vitaly-t/pg-promise/wiki/Performance-Boost" rel="nofollow noreferrer">https://github.com/vitaly-t/pg-promise/wiki/Performance-Boost</a> says:
  "How many records you can concatenate like this - depends on the size of the records, but I would never go over 10,000 records with this approach. So if you have to insert many more records, you would want to split them into such concatenated batches and then execute them one by one."</p>
  
  <p>I read all the article but I can't figure it out how to "split" my inserts into batches and then execute them one by one.</p>
  
  <p>Thanks!</p>