When you run a mapping in advanced mode, you can configure additional options in a MongoDB V2 connection.
Sampling properties
Configure sampling properties in the Additional Properties field:
samplesize
The number of documents to scan to infer the schema from the MongoDB source.
For example, samplesize=100.
Default is 100.
samplemethod
The method to sample documents to infer the schema from the MongoDB source.
You can specify one of the following methods:
- firstpage. Scans first n documents from MongoDB where n indicates the sample size. MongoDB determines the ordering of rows for scanning.
- random. Scans n number of random documents from MongoDB.
- all. Scans the entire collection to infer schema.
Other properties
Configure additional connection properties in the Additional Properties field to connect to non-SSL MongoDB deployments:
ssl
Determines if the connection uses SSL or non-SSL.
Set this parameter to false in the connection properties to connect to MongoDB deployments that do not use SSL.
Default is true.
authsource
Allows you to provide the database name against which you can authenticate user credentials.
For example, authsource=testadmin.
Default is admin.
Amazon DocumentDB optional properties
Configure additional connection properties in the Additional Properties field to connect to Amazon DocumentDB:
ssltruststorefilepath
The absolute path of the truststore file in the Secure Agent machine that contains the keys and certificates required to establish a secure communication.
For example, ssltruststorefilepath= <path_of_truststore_file>
For the serverless runtime environment, specify the following certificate path to the serverless agent directory: