title: Firestore Admin SDK - Memory usage keeps increasing
body: <p>Can someone please explain why the following increases the memory which then doesn't get garbage collected? </p>
  
  <p><a href="https://i.stack.imgur.com/kJII3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kJII3.png" alt="enter image description here"></a></p>
  
  <p>I am running the collection.add() function in a loop rated limited to 450/s as I'm iterating through a CSV file. The memory does not increase if I remove the collection.add() method so I assume it's Firebase consuming the memory. </p>
  
  <p>How can I make sure that memory is released after it has been saved in the database? </p>
  
  <p>My code below, any help appreciated.</p>
  
  <pre><code>db.collection("games")
          .doc(req.body.docid)
          .collection("players")
          .doc()
          .add({
            Number: row[0],
            FirstName: row[1],
            Lastname: row[2],
            Email: row[3],
            Prize: row[4],
            gameID: req.body.docid,
            guid: row[5]
          })
          .then(() =&gt; {
            progressCount++;
            updateProgress(req.body.docid);
          })
          .catch(err =&gt; {
            console.log(err.message);
          });
      });
  </code></pre>