Improved UPDATE node in Dataflow for bulk upserts

In Q4, the Dataflow module’s update node has been improved to allow bulk operations of upserts. Bear in mind that this option is only for operating with ontologies on MongoDB.

The aim of this functionality is to reduce the number of queries sent from the Platform to Mongo, so delays in these operations will be reduced. For this purpose, a new field, Bulk, has been added to the node configuration, where the number of operations to be performed in each operation will be specified:

To test the node, just add a node that generates an array of instances of an Ontology:

This node is connected to the update node and configured in upsert mode. If you access the IoTBroker logs, you will see that only one Mongo query has been launched with the three queries.