pyJoules/handler/mongo_handler.py
def save_data(self):
        """
        Save processed trace on the database
        """
        documents = []
        for trace in self.traces:
            documents.append(trace_to_dict(trace, self.trace_name_prefix + str(self.trace_id)))
            self.trace_id += 1
        self._collection.insert_many(documents)

        self.traces = []

        Save processed trace on the database
        
Save processed trace on the database
Save processed trace on the database
def save_data(self):
        documents = []
        for trace in self.traces:
            documents.append(trace_to_dict(trace, self.trace_name_prefix + str(self.trace_id)))
            self.trace_id += 1
        self._collection.insert_many(documents)
        self.traces = []
def save_data ( self ) : documents = [ ] for trace in self . traces : documents . append ( trace_to_dict ( trace , self . trace_name_prefix + str ( self . trace_id ) ) ) self . trace_id += 1 self . _collection . insert_many ( documents ) self . traces = [ ]
Save processed trace on the database
Save processed trace on the database
"""
        Save processed trace on the database
        """
self