MongoDB Plugins Configuration
Transcend's Structured Discovery tool automatically classifies the data discovered in your database. By leveraging machine learning techniques, we can categorize and recommend the processing purpose for each piece of data discovered. With Structured Discovery, Transcend helps you keep your Data Inventory up to date through inevitable database schema changes. Check out our full Structured Discovery guide for more information about how it works.
![MongoDB database Structured Discovery](/_next/image?url=%2Fdocs%2Fscreenshot%2F2023-07-07-mongodb-content-classification.png&w=3840&q=75)
You can use the MongoDB integration to programmatically identify personal information in your MongoDB and pull it into Transcend as datapoints. Those datapoints are assigned a data category and processing purpose to help you classify internal data. Additionally, you can assign custom tags to your datapoints to allow for further classification, tracking and reporting. In this way, Transcend helps you discover, classify and label data in a MongoDB automatically to ensure your Data Inventory is current.
The Datapoint Schema Discovery plugin in the MongoDB integration allows you to programmatically scan your database to identify the pieces of data in your DB and pull them into Transcend as objects and properties. Once the data is in Transcend, they can be classified, labeled, and configured for DSRs.
The plugin operates by sampling the database and generating an object within Transcend for each identified collection. Sampling is done dynamically to handle larger collections, continuously halving the sample size and rerunning queries until successful which provides optimal performance even for extensive datasets. The plugin uses the $sample, $sort by _id, and $limit query to retrieve both the old and the newest documents and combine the results. Additionally, the plugin discovers embedded arrays within these collections, each of which is also returned as an object, prefixed with the name of the parent collection for clarity. This comprehensive scanning process ensures a thorough mapping of your database structure within Transcend.
Creating an object for each collection/embedded array creates an organization structure that mirrors the architecture of your data and keeps data grouped consistently. This makes it simple to keep track of the data hierarchy in Transcend, classify the data, and optionally implement DSRs against it.
Data Silo | Object | Property |
---|---|---|
MongoDB Database | Collections/Embedded Arrays | Properties |
The image below gives an example of schema discovery results with nested properties. For objects, each ::
separates nested layers of array fields. For properties, we provide the full path to the field in MongoDB. The []
symbolizes an array field, and ::
symbolizes an object field.
![Schema discovery results for a sample family collection](/_next/image?url=%2Fdocs%2Fscreenshot%2F2023-07-07-mongodb-schema-discovery.png&w=3840&q=75)
To enable the datapoint schema discovery plugin, navigate to the Structured Discovery tab within the MongoDB data silo and toggle the plugin on. From there, you'll be able to set the frequency for which the plugin will run to discover new objects and properties as they are added to the database. Note: We recommend scheduling the plugin to run at times when the load on the database is lightest.
![Enable the datapoint schema discovery plugin for the MongoDB integration](/_next/image?url=%2Fdocs%2Fscreenshot%2F2023-12-11-mongodb-structured-discovery-plugin.png&w=3840&q=75)