In this article, we’ll integrate a MongoDB data source with Y42.

Overview

Authentication: Database Credentials
Settings: None
Schema type: Dynamic
Update Type: Full import and incremental
 

Authentication

Your database credentials allow you to log into your database, either locally or remotely. A credential is a record that contains the authentication information. This information is used internally by server hosting the SQL database. The credentials entail the host address, the IP hosting the server/database, the port number, the default port on MongoDB is 27017, the user and the password.

You may also use SSH tunneling or use a Y42 IP for whitelisting.

SSH tunneling is a method of transporting arbitrary networking data over an encrypted SSH connection. The SSH connection is used by the application to connect to the application server. With tunneling enabled, the application contacts to a port on the local host that the SSH client listens on. The SSH client then forwards the application over its encrypted tunnel to the server. See the configuration example page for detailed configuration instructions. The SSH command line options and SSH server configuration file pages may also be helpful.

Meanwhile, whitelisting means taking manual steps to ensure that a certain IP address isn't blocked from accessing your application by some automated security process. Whitelisting IP addresses enables you to control who can (or cannot) access your database. You can add an IP to Whitelist on the security configurations of your database.

 

Import Settings

This integration has no import settings.

 

Schema

There is no predefined schema for this integration. The integration will dynamically load the tables & columns which are defined within your specific system.

 

Updating your data

You have the option of scheduling Full imports or Incremental Imports by the month, weeks, days, and even by the hour. With the incremental import you will only add the new rows to that table, while a full import will actually re-import the entire table completely.

Incremental imports significantly increase the import speed, we import your table incrementally based on the last imported state e.g. id - If the table does not have a state, a full import will be triggered - This is done automatically.

We recommend therefore to schedule an incremental import regularly, but also schedule a full import with a certain frequency -- this is because only the full import will guarantee that old rows that have been updated on the data source will also get updated on your Y42 integration destination.

 

MongoDB Setup Guide:

Note: In order to connect MongoDB with Y42, you will need to have a MongoDB Account.

  1. On Integrate, click on "Add..." to search for MongoDB and select it.

  2. Name your integration

  3. Authorize access:

You can authorize a MongoDB integration in two ways:

  1. Add in your Connection URL, e.g. http://username:password@Y42-d-imzvl.mongodb.net/test?retryWrites=true&w=majority

    (here, you can find more information about Connection URL)

    Screenshot_2021-01-15_at_2.43.10_PM.png

  2. Click Connect, and you are good to go to start importing your tables.

    image.png

  3. Select the tables you need and click import. You can start accessing the tables once the status is “Ready”. 

Note: You can always import and reimport other tables as well, or delete them.

You can also connect a MongoDB integration without the need of entering your URL:

Screenshot_2021-01-15_at_2.43.26_PM.png

  1. Enter your Database.

  2. Your Host & your Port.

  3. Your User name & your Password.

    Note
    : You can choose to either connect now or to connect by using a SSH tunnel.

    Screenshot_2021-01-15_at_2.50.39_PM.png

  4. You’ll need to enter your SSH Host, your SSH Port & User.

  5. Finally, add in your Private Key File as well. 

  6. Click Connect, and you are good to go to start importing your tables.

    image.png

  7. Select the tables you need and click import. You can start accessing the tables once the status is “Ready”. 

Note: You can always import and reimport other tables as well, or delete them.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.