Skip to content

Commit fef7891

Browse files
(DOCSP-30173): Proactive performance insights (#525)
* (DOCSP-30173): Proactive performance insights * edits * edits * fix broken ref * fix ref link * add blurb for automatically enabled * adjust table heading * address Julia's feedback * minimalism * fix toc * address Julia's feedback * intro sentence * wording * wording tweak * internal review edit * add ref to release notes * wording
1 parent c67b865 commit fef7891

File tree

4 files changed

+94
-6
lines changed

4 files changed

+94
-6
lines changed

source/manage-data.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ Interact with Your Data
3131
Learn how to analyze your data schema and shape of the fields in a
3232
particular collection.
3333

34+
:ref:`compass-performance-insights`
35+
Learn how to analyze your data schema and shape of the fields in a
36+
particular collection.
37+
3438
:doc:`/validation`
3539
Learn how to ensure that all documents in a collection
3640
follow a defined set of rules.
@@ -52,6 +56,7 @@ Interact with Your Data
5256
/query/filter
5357
/indexes
5458
/schema
59+
/manage-data/performance-insights
5560
/validation
5661
/sampling
5762
/in-use-encryption-tutorial
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.. _compass-performance-insights:
2+
3+
====================
4+
Performance Insights
5+
====================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
15+
When |compass| determines that your schema or queries can be improved,
16+
it displays a performance insight. Performance insights show ways to
17+
improve your schema and data modeling practices. Use performance
18+
insights to learn best schema design practices and improve application
19+
performance.
20+
21+
Use Cases
22+
---------
23+
24+
Performance insights are best followed early in your application
25+
development process. Starting your application with good data modeling
26+
practices helps prevent schema and performance issues as your
27+
application grows.
28+
29+
Although |compass-short| provides performance insights at any stage of
30+
development, it can be difficult to make schema modifications in
31+
large-scale schemas that are used in production.
32+
33+
Before you modify your schema based on performance insights, ensure that
34+
the suggestion makes sense for your application. For example, if
35+
|compass-short| suggests creating an index, make sure that index
36+
supports queries that are run frequently.
37+
38+
Behavior
39+
--------
40+
41+
Performance insights are enabled automatically.
42+
43+
Performance insights are generic, and do not use properties specific to
44+
your schema such as database or collection names.
45+
46+
|compass-short| shows performance insights in the following scenarios:
47+
48+
.. list-table::
49+
:header-rows: 1
50+
:widths: 10 10
51+
52+
* - Scenario
53+
- Performance insight
54+
55+
* - You run a query or aggregation without an index.
56+
- Add an index to support the operation.
57+
58+
* - You run an aggregation pipeline that uses a :pipeline:`$lookup`
59+
stage.
60+
- Embed related data to avoid the need for a ``$lookup`` operation.
61+
62+
* - You run a :query:`$text` or :query:`$regex` query.
63+
- If possible, use :atlas:`Atlas Search </atlas-search>` to improve
64+
performance for text search queries.
65+
66+
* - Your database contains too many collections.
67+
- Reduce the number of collections.
68+
69+
* - Your documents contain an array field with too many elements.
70+
- Avoid unbounded arrays.
71+
72+
* - The data size of individual documents is too large.
73+
- Break up large documents into separate collections.
74+
75+
* - Your collection contains too many indexes.
76+
- Review your indexes and remove any that are unnecessary.
77+
78+
Learn More
79+
----------
80+
81+
- To learn more about data modeling in MongoDB, see
82+
:ref:`manual-data-modeling-intro`.
83+
84+
- To learn how to create effective indexes for your application, see
85+
:manual:`Indexing Strategies </applications/indexes>`.

source/release-notes.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ Release Notes
1818

1919
New features:
2020

21-
- Enable proactive performance insights by default. Proactive
22-
performance insights analyze your queries and suggest ways to improve
23-
performance. (:issue:`COMPASS-7000`)
21+
- Enable :ref:`proactive performance insights
22+
<compass-performance-insights>` by default. Proactive performance
23+
insights analyze your queries and suggest ways to improve performance.
24+
(:issue:`COMPASS-7000`)
2425

2526
Bug Fixes:
2627

source/schema.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ Analyze Your Data Schema
1212
:depth: 1
1313
:class: singlecol
1414

15-
Overview
16-
--------
17-
1815
The :guilabel:`Schema` tab provides an overview of the data type
1916
and shape of the fields in a particular collection. Databases
2017
and collections are visible in the left-side navigation.

0 commit comments

Comments
 (0)