class_docstr: Non permanent collection
  
  This collection is meant for debugging purposes within the EphemeralDB.
  
  .. seealso:: :class:`orion.core.io.database.ephemeraldb.EphemeralDB` for database object.
class_docstr_tok: ["Non","permanent","collection","This","collection","is","meant","for","debugging","purposes","within","the","EphemeralDB",".","..","seealso",":",":",":","class",":","`","orion.core.io.database.ephemeraldb.EphemeralDB","`","for","database","object","."]
docstr: Add new documents in the collection.
  
  If the documents do not have a keys `_id`, they are assigned by default
  the max id + 1.
  
  Raises
  ------
  DuplicateKeyError
      If the document contains unique indexes which are already present in the database.
docstr_tok: ["Add","new","documents","in","the","collection",".","If","the","documents","do","not","have","a","keys","`","_id","`",",","they","are","assigned","by","default","the","max","id","+","1",".","Raises","--","--","--","DuplicateKeyError","If","the","document","contains","unique","indexes","which","are","already","present","in","the","database","."]
code: def insert_many(self, documents):
      """Add new documents in the collection.
  
      If the documents do not have a keys `_id`, they are assigned by default
      the max id + 1.
  
      Raises
      ------
      DuplicateKeyError
          If the document contains unique indexes which are already present in the database.
  
      """
      for document in documents:
          if "_id" not in document:
              document["_id"] = self._get_new_id()
          ephemeral_document = EphemeralDocument(document)
          self._validate_index(ephemeral_document)
          self._documents.append(ephemeral_document)
          self._register_keys(ephemeral_document)
  
      return len(documents)
  
imports: import copy
  from collections import defaultdict
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.utils.flatten import flatten, unflatten
label_desc: Use image node_id 9 for calling the EphemeralCollection obj's underlying member method code with example usage: obj.insert_many(documents) and returns: len