Skip to content

Commit 643427b

Browse files
Merge pull request #222 from nvillahermosa-mdb/DOCSP-47931-analyze-your-application
DOCSP-47931 Analyze your application
2 parents 4bc2bc0 + 2942a48 commit 643427b

File tree

6 files changed

+214
-1
lines changed

6 files changed

+214
-1
lines changed
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
.. _rm-analysis-report:
2+
3+
=================================
4+
The Pre-Migration Analysis Report
5+
=================================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
The analysis report lists the migration risks detected in your database, and
14+
provides suggested mitigation actions for each one. To see all the potential
15+
migration risks that Relational Migrator can detect, see the :ref:`Migration
16+
Risk Reference <rm-app-analysis-risk-reference>`.
17+
18+
Summary
19+
-------
20+
21+
The :guilabel:`Summary` section lists the overall migration readiness of your
22+
database, and provides a breakdown of the metrics that affect that readiness
23+
level.
24+
25+
Detection Breakdown
26+
~~~~~~~~~~~~~~~~~~~
27+
28+
The Detection Breakdown shows how many detections have Actions Required,
29+
are Potential Risks, or are strictly Informational.
30+
31+
.. image:: /img/app-analysis/app-analysis-detection-breakdown.png
32+
:alt: A screenshot of the detection breakdown, with the migration readiness
33+
level and number of detections.
34+
35+
Database Object Overview
36+
~~~~~~~~~~~~~~~~~~~~~~~~
37+
38+
The Database Object Overview shows detections for Tables, Stored Procedures,
39+
Triggers, and Views. Table risks are further categorized as Data Type, Schema,
40+
Unsupported Feature, or Performance.
41+
42+
.. note::
43+
44+
Pre-Migration Analysis doesn't analyze the SQL code of stored
45+
procedures, views, and triggers. If your database has procedures that may
46+
present an issue, please contact your account representative.
47+
48+
.. image:: /img/app-analysis/app-analysis-db-objects.png
49+
:alt: A screenshot of the database object overview, with the number of
50+
detections of each type.
51+
52+
Once you've addressed the migration risks, you can run Pre-Migration Analysis
53+
again by clicking :guilabel:`Rerun analysis` to confirm that there aren't any
54+
more issues.
55+
56+
Database
57+
--------
58+
59+
The :guilabel:`Database` section lists all detected risks for your relational
60+
database. If you use the :guilabel:`Status` column of the table to mark
61+
resolved risks, they are hidden from the list. Check :guilabel:`Include
62+
resolved detections` to show them.
63+
64+
You can switch between tabs for more information on different types of
65+
detections.
66+
67+
The All detections tab
68+
~~~~~~~~~~~~~~~~~~~~~~
69+
70+
This is the default tab, and shows all detections in a single table. You can
71+
use the dropdown to switch between :guilabel:`Show all`, :guilabel:`Tasks
72+
only`, :guilabel:`Risks only`, and :guilabel:`Notes only`.
73+
74+
The Tables tab
75+
~~~~~~~~~~~~~~
76+
77+
The :guilabel:`Tables` tab lists detections for each table. The
78+
:guilabel:`Overview and Analysis` toggle shows detections. Switch it to
79+
:guilabel:`Columns` to see the column definitions for the selected table.
80+
81+
The Stored Procedures tab
82+
~~~~~~~~~~~~~~~~~~~~~~~~~
83+
84+
.. note::
85+
86+
Pre-Migration Analysis doesn't analyze stored procedure SQL code
87+
for risks.
88+
89+
The :guilabel:`Stored Procedures` tab shows each procedure. Switch the
90+
:guilabel:`Overview and Analysis` toggle to :guilabel:`SQL code`
91+
to see the code for the selected procedure.
92+
93+
The Triggers tab
94+
~~~~~~~~~~~~~~~~
95+
96+
.. note::
97+
98+
Pre-Migration Analysis doesn't analyze trigger SQL code for
99+
risks, because MongoDB doesn't natively support triggers. Consider using
100+
:ref:`Query Converter <rm-query-converter>` to convert your SQL to
101+
:atlas:`Atlas Triggers </atlas-ui/triggers/>`, in order to replicate
102+
existing behavior.
103+
104+
The :guilabel:`Triggers` tab shows each trigger. Switch the
105+
:guilabel:`Overview and Analysis` toggle to :guilabel:`SQL code`
106+
to see the code for the selected trigger.
107+
108+
The Views tab
109+
~~~~~~~~~~~~~
110+
111+
.. note::
112+
113+
Pre-Migration Analysis doesn't analyze view definitions for
114+
risks, because views must be converted to MQL. Consider using :ref:`Query
115+
Converter <rm-query-converter>` to migrate views.
116+
117+
The :guilabel:`Views` tab shows each view. Switch the
118+
:guilabel:`Overview and Analysis` toggle to :guilabel:`SQL code`
119+
to see the SQL definition for the selected view.
120+
121+
The Incompatible features tab
122+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123+
124+
The :guilabel:`Incompatible features` tab lists incompatible features in your
125+
source database that either don't have a MongoDB equivalent, or work
126+
differently enough that Relational Migrator can't automatically migrate them.
127+
128+
Prerequisites
129+
-------------
130+
131+
The :guilabel:`Prerequisites` section lists necessary tasks to prepare your
132+
database for migration. This is a targeted list of recommendations based on the
133+
information gathered during Pre-Migration Analysis. For general information on
134+
database prerequisites, see :ref:`rm-prerequisites`.
135+
136+
Resources
137+
---------
138+
139+
The :guilabel:`Planning Resources` section lists links to MongoDB blogs and
140+
documentation content about data modeling and migration.

source/app-analysis/run-analysis.txt

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,76 @@ Run Pre-Migration Analysis
1010
:depth: 1
1111
:class: singlecol
1212

13+
14+
You can run Pre-Migration Analysis against a relational database to
15+
review potential migration risks before migrating data to MongoDB. Running
16+
Pre-Migration Analysis generates a report that identifies risks and provides
17+
guidance on how to mitigate them.
18+
19+
About this Task
20+
---------------
21+
22+
Relational Migrator typically takes 5-10 minutes to crawl the database, though
23+
it can take longer if the machine running Relational Migrator isn't near the
24+
database server.
25+
26+
.. important::
27+
28+
Relational Migrator supports Pre-Migration Analysis for Microsoft SQL
29+
Server, MySQL, Oracle, and PostgreSQL. Pre-Migration Analysis isn't
30+
supported for databases connected through a JDBC driver. For more
31+
information on supported databases and versions, see
32+
:ref:`supported-databases`.
33+
34+
Before you Begin
35+
----------------
36+
37+
To run Pre-Migration Analysis, you need a :ref:`project with a live database
38+
connection <rm-create-project-live>`.
39+
40+
Steps
41+
-----
42+
43+
.. procedure::
44+
:style: normal
45+
46+
.. step:: Open your project
47+
48+
If your project has no Pre-Migration Analysis reports, Relational
49+
Migrator displays help text to suggest analyzing your application.
50+
51+
.. step:: Navigate to the :guilabel:`Pre-Migration Analysis` tab
52+
53+
You can review previous reports here, or run Pre-Migration Analysis.
54+
55+
.. step:: Select a relational database connection if one isn't already set
56+
57+
In the Database Connections bar, select the saved connection from the
58+
:guilabel:`Relational DB` dropdown.
59+
60+
.. step:: Click :guilabel:`Run analysis`
61+
62+
If you didn't save credentials when saving the relational database
63+
connection, enter them now and then click :guilabel:`Connect
64+
and run analysis` to continue.
65+
66+
Relational Migrator analyzes the connected source database. You can click
67+
:guilabel:`Terminate` if you need to stop the process. Once complete,
68+
Relational Migrator shows the resulting report.
69+
70+
.. important::
71+
72+
If Relational Migrator encounters errors, it displays the message "An
73+
error occurred during the analysis. As a result, there may be
74+
information missing from the report." If this happens, click
75+
:guilabel:`Rerun analysis` on the report Summary page to run analysis
76+
again. If the problem persists, please contact your account
77+
representative.
78+
79+
Next Steps
80+
----------
81+
82+
After running Pre-Migration Analysis, :ref:`review the report
83+
<rm-analysis-report>` and follow the recommended actions. You can then re-run
84+
analysis by navigating to the report Summary and clicking :guilabel:`Rerun
85+
analysis` to see if any risks remain.
293 KB
Loading
197 KB
Loading

source/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Explore libraries and tools for MongoDB.
147147

148148
Get Started </getting-started>
149149
Installation </installation>
150-
Database Connections </database-connections/database-connections>
150+
Database Connections </database-connections>
151151
Pre-Migration Analysis </app-analysis>
152152
Projects </projects>
153153
Mapping Rules </mapping-rules/introduction>

0 commit comments

Comments
 (0)