---
title: "Improved UPDATE node in Dataflow for bulk upserts"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220823232/Improved%20UPDATE%20node%20in%20Dataflow%20for%20bulk%20upserts"
format: markdown
---
In Q4, the Dataflow module’s [update node](https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/2220822966) 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:

![Captura de pantalla 2024-12-10 163500-20241210-153500.png](media://ca96b63d-01e6-4e9e-a68c-807785099eda)

 

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

![image](media://0f0b65a3-23cf-40d3-89f9-1ca1277cb523)

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.