For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Migration Risk Reference

Pre-Migration Analysis generates a report that lists migration risks in your source database. This reference page lists all of the migration risks Relational Migrator may detect on supported databases.

Migration risks are categorized as one of:

  • Data Type: Data types that can result in lost precision or lost data when migrating to MongoDB.

  • Schema: Database or table configuration that causes difficulties when mapping source database schema to MongoDB.

  • Unsupported Feature: Features of other databases that aren't supported in MongoDB.

  • Performance: Database or table configuration that may cause performance issues when migrating data into MongoDB.

Name
Type
Category
Difficulty
Report Message
Mitigation

Geospatial Data

Table

Data Types: MYSQL_GEOMETRY, MYSQL_POINT, MYSQL_LINESTRING, MYSQL_POLYGON, MYSQL_MULTIPOINT, MYSQL_MULTILINESTRING, MYSQL_MULTIPOLYGON, MYSQL_GEOMETRYCOLLECTION

High

The table contains columns which require special handling: <columns>.

You are storing geospatial data in your database. These will be converted to objects with a srid (int) coordinate reference and wkb (binary) content in WKB (well-known-binary) format

Blob Types

Table

Data Types: MYSQL_MEDIUMBLOB, MYSQL_LONGBLOB, MYSQL_MEDIUMTEXT, MYSQL_LONGTEXT

Medium

The table contains columns which could exceed the 16MB limit.

If you are storing >16MB in the record, the migration will fail as MongoDB documents cannot exceed 16MB. We strongly advise against storing large blobs in MongoDB, but if multi-document transactions aren't required you can use GridFS.

Numeric precision (specified)

Table

Data Type

Medium

The following columns are at risk of data loss due to decimal precision: <columns>.

The specified columns have been configured to support more decimal precision than is supported in a Decimal128 field. During migration, these values will be rounded to 34 significant figures.

Numeric precision (unspecified)

Table

Data Type

Medium

The following columns may be at risk of data loss due to decimal precision: <columns>.

The specified columns are using variable decimal precision and may contain values with more decimal precision than is supported in a Decimal128 field. During migration, these values will be rounded to 34 significant figures.

Auto-Incrementing Columns

Table

Schema

High

Table <name> has an auto incrementing column.

MongoDB encourages the use of ObjectID for ID fields because incrementing IDs have difficulty sharding. MongoDB Relational Migrator can migrate your keys as-is, but you will need to write code to maintain this behavior. If you're using MongoDB Atlas, you can use Atlas Triggers to auto-increment your IDs.

No foreign keys found

Database

Schema

Medium

The <name> database has no foreign keys.

This will make the schema mapping more complicated as we cannot infer the relationship between your tables without them. You can use the synthetic foreign keys feature of Migrator to define logical relationships between your tables.

Views

Database

Schema

Medium

There were views detected in <database>.

Views are supported in MongoDB but they must be converted into MQL.

Triggers

Database

Unsupported Feature

High

The <name> database has triggers.

MongoDB has no native way to implement triggers.

Routines

Database

Unsupported Feature

Medium

There were routines detected in <database>.

MongoDB has no native way to represent routines.

Large single table

Database

Performance

Medium

The total data size of the selected tables is greater than <limit> GB, at 100 GB.

Larger data migration jobs can require careful planning to maximize performance and reliability. The deployment considerations topic in the documentation provides advice which can help.

Rate this page