title: How can make a loop with 230.000+ record in python, but not make sever slowly, this data is in Odoo 11?
body: <p>I have a problem that each Done quantity, I need to create 1 record. And now, I have 230.000+ done quantity, so 230.000 records must be created. If I make a for loop like normal</p>
  
  <pre><code>for line in range(1, int(move_line.qty_done) + 1 ): #qty_done here is 230.000
      val = {
          'name': line.name,....some data here}
      self.env['model'].create(val)
  </code></pre>
  
  <p>So when I run this, my sever local is stuck and die when it runs over 20 minutes. I am afraid that if push code into real sever, it will be terrible. Please give me some advice for this, thank in advance.</p>