# tMilvusOutput

Executes the action defined on the collection in the Milvus database.

The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.

For a quick introduction on using this component in your Job, see the following video:

## tMilvusOutput Standard properties

These properties are used to configure tMilvusOutput running in the Standard Job framework.

The Standard tMilvusOutput component belongs to the Databases family.

## Basic settings

| Properties | Description |
| --- | --- |
| Use existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined. |
| Schema and Edit Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>Click Sync columns<br>to retrieve the schema from the previous component connected in the Job.<br><br><br>This component supports dynamic schema when inserting documents to a<br>collection. |
| Collection | Enter the name of the collection in the Milvus database, or click the<br>[...] button next to the corresponding field to fetch<br>the available collections and select the desired one. |
| Operation | Select the type of operation you want to perform on the collection data<br>(insert, upsert, or delete). |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to collect the log data at the component<br>level. |
| Max batch size | Specify the maximum number of records that can be processed in a batch. |
| Partition | Select this check box to perform the data operation in partitions.<br><br>Enter<br>the name, in double quotation marks, of the partition column of the Milvus<br>table you want to perform the operation on, or click the<br>[...] button next to the corresponding field to<br>select the desired one.<br><br>You can only define one value. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | tMilvusOutput executes the action<br>defined on the collection in the Milvus database based on the flow incoming from<br>the preceding component in the Job. |

**Related tasks**

* [Querying Milvus collections using vector embeddings](https://help.qlik.com/talend/en-US/components/8.0/vector/tmilvus-components-storing-and-retrieving-product-embeddings-standard-component "The following Job demonstrates how to connect to a Milvus vector database, insert product embeddings, and retrieve similar products using vector similarity search.")