PowerExchange for MongoDB User Guide

PowerExchange for MongoDB User Guide

PowerExchange for MongoDB Implementation

PowerExchange for MongoDB Implementation

To extract and load MongoDB data, create a MongoDB data object in the Developer tool. You can include the data object as a source or target in a mapping. You can run the mapping or add the mapping to a workflow to process the data.
PowerExchange for MongoDB includes the Informatica MongoDB ODBC driver that connects to the MongoDB server. PowerExchange for MongoDB supports the MMAPv1 storage engine in MongoDB. You can create an ODBC connection to extract data from or load data to a MongoDB database. You can also configure the replica sets for the MongoDB server so that the
Data Integration Service
can access the secondary servers if the primary server is not available.
The Developer tool uses the schema of a collection, or you can define the schema for the collection before you import a data object. The Developer tool flattens the schema if there is any hierarchical element in the collection and retains the original schema of the collection when you import it.
The Developer tool imports a document based on the schema that you set for the collection. If a document contains hierarchical elements like arrays or nested documents, the Developer tool imports them as columns at the same level as other columns.
For example, you need to import the collection product_details with the following schema:
{ sku: "sku_name", title: "product_name", description: "description", manufacture_details: { model_number: "model_number", release_date: new ISODate("date") }, shipping_details: { weight: <value>, width: <value>, height: <value>, depth: <value> }, quantity: <value>, pricing: [ {region: "North America", cost_price: 1000, sale_price: 1200}, {region: "Europe", cost_price: 1200, sale_price: 1500} ] }
The
Developer tool
imports the collection schema into a tabular format. You can identify arrays and nested documents with the naming convention of the column. The naming convention of a nested document is <top level element name>.<nested document name>.<nested document element name>. The naming convention of an array is <array name>.<element number>.
If a column name in a document or a key name in an array element exceed 128 characters, the Developer tool truncates the column name or key name to 128 characters. When multiple column names exceed 128 characters each, multiple columns are truncated. As a result, duplicate column might be created, and data preview failure might occur. To prevent failure of data preview, ensure that duplicate column names do not occur.
The following figure shows the source definition when you import the collection into the Informatica Developer and the delimiter is a period (.):
The data object imported from the sample collection.
When you run a
mapping
, the
Data Integration Service
uses the MongoDB ODBC data source name in the machine that runs the
Data Integration Service
to extract data from or load data to a MongoDB database.

0 COMMENTS

We’d like to hear from you!