Skip to content

Commit 32ee9be

Browse files
(DOCSP-7838): Making querying documents more task-centric (ToC Refactor) (#206)
* (DOCSP-7838): Making querying documents more task-centric * Updates per Gilberto's review
1 parent 2a2fec9 commit 32ee9be

24 files changed

+235
-293
lines changed

config/sphinx_local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ theme:
99
google_analytics: 'UA-7301842-8'
1010
nav_excluded:
1111
- /
12+
- /manage-data
1213
- /troubleshooting
1314
- /troubleshooting/connection-errors
1415
sidebars:

source/collections.txt

Lines changed: 41 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _collection-tab:
22

3-
=====================
4-
Collections and Views
5-
=====================
3+
===========
4+
Collections
5+
===========
66

77
.. default-domain:: mongodb
88

@@ -12,32 +12,23 @@ Collections and Views
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. _collections-screen:
15+
A collection is a grouping of MongoDB
16+
:ref:`documents <compass-documents>`. Documents within a collection can
17+
have different fields. A collection is the equivalent of a
18+
table in a relational database system. A collection exists within a
19+
single :ref:`database <database-tab>`
20+
21+
.. _collections-screen-collections:
1622

1723
Collections Screen
1824
------------------
1925

20-
The :guilabel:`Collections` screen lists the existing
21-
:ref:`collections <compass-collections>` and
22-
:ref:`views <compass-views>` in the selected database. Each
23-
list item includes the name and other general information for
24-
the specific collection/view.
25-
26-
To access the :guilabel:`Collections` screen for a database, from the
27-
:doc:`Databases screen </databases>` either:
28-
29-
- Click a :guilabel:`Database Name` in the main :guilabel:`Databases`
30-
view, or
31-
32-
- Click a database in the left navigation.
33-
34-
.. figure:: /images/compass/select-database.png
35-
:figwidth: 750px
26+
.. include:: /includes/fact-collections-screen.rst
3627

3728
.. _compass-collections:
3829

39-
Collections
40-
~~~~~~~~~~~
30+
Collection Information
31+
~~~~~~~~~~~~~~~~~~~~~~
4132

4233
The :guilabel:`Collections` screen displays the following
4334
information for each collection in the selected database:
@@ -52,37 +43,6 @@ information for each collection in the selected database:
5243
collection. Hover over a :guilabel:`Collation` banner to view
5344
the properties for that collection.
5445

55-
.. _compass-views:
56-
57-
Views
58-
~~~~~
59-
60-
Views are read-only results of an aggregation run against a collection.
61-
The :guilabel:`Collections` screen displays the following information
62-
for each view in the selected database:
63-
64-
- View name
65-
- Collection from which the view was created
66-
- Total size of all documents in the view
67-
- Total size of all indexes on the collection
68-
69-
|compass-short| explicitly marks views in the left navigation with
70-
a unique icon:
71-
72-
.. figure:: /images/compass/view-icon.png
73-
:scale: 50%
74-
:alt: View icon
75-
76-
For more information on views, see :ref:`view-details`.
77-
78-
Limitations
79-
-----------
80-
81-
- .. include:: /includes/extracts/readonly-not-permitted-collections.rst
82-
83-
- The :guilabel:`Create Collection` button is not available if you are
84-
connected to a :atlas:`Data Lake </data-lake>`.
85-
8646
.. _create-collection:
8747

8848
Create a Collection
@@ -119,34 +79,39 @@ collection details, either:
11979
:scale: 90%
12080

12181
After you select a collection, |compass-short| shows you that
122-
collection's :doc:`Documents tab </documents>`. |compass-short| provides the following
123-
collection information and functionality in the detailed view:
82+
collection's :doc:`Documents tab </documents>`. |compass-short| provides
83+
the following collection information and functionality in the detailed
84+
view:
12485

12586
- :doc:`/documents`
12687

12788
- :doc:`Import and Export Data </import-export/>` to / from the collection
128-
129-
Importing data is not available if you are connected to
130-
a :atlas:`Data Lake </data-lake>`
13189

13290
- :ref:`compass-agg-builder`
13391

134-
- :doc:`Schema Analysis </schema>`
135-
136-
Not Available in Compass Community Edition
92+
- :doc:`Schema Analysis </schema>`
93+
94+
- :doc:`/query-plan`
95+
96+
- :doc:`/indexes`
97+
98+
- :doc:`/validation`
13799

138-
- :doc:`/query-plan`
139-
140-
Not Available if you are connected to a :atlas:`Data Lake </data-lake>`
100+
.. admonition:: Data Lake Limitations
101+
:class: note
141102

142-
- :doc:`/indexes`
143-
144-
Not Available if you are connected to a :atlas:`Data Lake </data-lake>`
103+
The following functionality is not available if you are connected to
104+
a :atlas:`Data Lake </data-lake>`:
145105

146-
- :doc:`/validation`
147-
148-
Not Available in Compass Community Edition or if
149-
you are connected to a :atlas:`Data Lake </data-lake>`
106+
- Import data into a collection
107+
108+
- Schema Analysis
109+
110+
- View Query Performance
111+
112+
- Manage Indexes
113+
114+
- Set Validation Rules for Your Schema
150115

151116
.. _tabbed-view:
152117

@@ -158,17 +123,12 @@ open a new tab to view collection details:
158123

159124
.. include:: /includes/steps/open-new-tab.rst
160125

161-
.. class:: hidden
126+
Limitations
127+
-----------
162128

163-
.. toctree::
164-
:titlesonly:
129+
- .. include:: /includes/extracts/readonly-not-permitted-collections.rst
165130

166-
/query-bar
167-
/documents
168-
/schema
169-
/query-plan
170-
/indexes
171-
/validation
172-
/views
131+
- The :guilabel:`Create Collection` button is not available if you are
132+
connected to a :atlas:`Data Lake </data-lake>`.
173133

174134
.. |home| unicode:: U+2302

source/databases.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Databases
1212
:depth: 1
1313
:class: singlecol
1414

15+
A database is a container for :ref:`collections <collection-tab>`.
16+
Each database gets its own set of files on the host file system.
17+
A single MongoDB server typically has multiple databases.
18+
1519
Databases Tab
1620
-------------
1721

@@ -30,14 +34,6 @@ database collections by clicking the desired database in the left-hand navigatio
3034
You can also :ref:`create <create-database>` or
3135
:ref:`drop databases <drop-database>` from this view.
3236

33-
Limitations
34-
-----------
35-
36-
- .. include:: /includes/extracts/readonly-not-permitted-databases.rst
37-
38-
- Creating databases is not permitted if you are connected to a
39-
:atlas:`Data Lake </data-lake>`.
40-
4137
.. _create-database:
4238

4339
Create a Database
@@ -51,3 +47,11 @@ Drop a Database
5147
---------------
5248

5349
.. include:: /includes/steps/delete-database.rst
50+
51+
Limitations
52+
-----------
53+
54+
- .. include:: /includes/extracts/readonly-not-permitted-databases.rst
55+
56+
- Creating databases is not permitted if you are connected to a
57+
:atlas:`Data Lake </data-lake>`.

source/documents.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
.. _compass-documents:
22

3-
=============
4-
Documents Tab
5-
=============
3+
================
4+
Manage Documents
5+
================
66

77
.. default-domain:: mongodb
88

9+
Documents are individual records in a MongoDB :ref:`collection
10+
<collection-tab>` and are the basic unit of data in MongoDB.
11+
912
.. _documents-tab:
1013

1114
From the :guilabel:`Documents` tab, you can
@@ -23,13 +26,12 @@ collection or view.
2326

2427
.. include:: /includes/extracts/query-bar-results.rst
2528

26-
From the :doc:`query bar </query-bar>`, you can specify a query to
29+
From the :ref:`query bar <query-bar>`, you can specify a query to
2730
filter the displayed documents. Click :guilabel:`Options` to
2831
specify query options.
2932

3033
.. seealso::
3134

32-
- :doc:`query-bar`
3335
- :doc:`/documents/view`
3436
- :doc:`/documents/insert`
3537
- :doc:`/documents/modify`

source/export-query-to-language.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Procedure
2727
#. Select :guilabel:`Export to Language`:
2828

2929
.. figure:: /images/querybar/export-query-to-language-menu-option.png
30-
:figwidth: 300px
30+
:figwidth: 600px
3131
:lightbox:
3232
:alt: Query bar export dropdown menu
3333

3434
#. In the :guilabel:`Export Query To:` dropdown, select your desired
3535
language:
3636

3737
.. figure:: /images/querybar/export-query-to-language-select.png
38-
:figwidth: 300px
38+
:figwidth: 600px
3939
:lightbox:
4040
:alt: Query bar language select
4141

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
The :guilabel:`Collections` screen lists the existing
2+
:ref:`collections <compass-collections>` and
3+
:ref:`views <compass-views>` in the selected database. Each
4+
list item includes the name and other general information for
5+
the collection or view.
6+
7+
To access the :guilabel:`Collections` screen for a database, from the
8+
:doc:`Databases screen </databases>` either:
9+
10+
- Click a :guilabel:`Database Name` in the main :guilabel:`Databases`
11+
view, or
12+
13+
- Click a database in the left navigation.
14+
15+
.. figure:: /images/compass/select-database.png
16+
:figwidth: 750px
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
file: /databases
2+
description: |
3+
Learn how to create and manage databases in your deployment.
4+
---
5+
file: /collections
6+
description: |
7+
Learn how to manage collections in your databases.
8+
---
9+
file: /views
10+
description: |
11+
Learn how to manage views in your databases. Views are read-only
12+
results of an :ref:`aggregation <compass-agg-builder>` run against
13+
a collection.
14+
---
15+
file: /documents
16+
description: |
17+
Learn how to manage documents in your collections.
18+
---
19+
file: /query/filter
20+
description: |
21+
Learn how to query your data to return data that matches a specified
22+
criteria.
23+
---
24+
file: /indexes
25+
description: |
26+
Learn how to create indexes to improve query performance.
27+
---
28+
file: /schema
29+
description: |
30+
Learn how to analyze your data schema and shape of the fields in a
31+
particular collection.
32+
---
33+
file: /validation
34+
description: |
35+
Learn how to ensure that all documents in a collection
36+
follow a defined set of rules.
37+
...

source/index.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ https://github.com/mongodb-js/compass/.
148148
/install
149149
/connect
150150
/instance
151-
/collections
151+
/data-concepts
152+
/manage-data
152153
/aggregation-pipeline-builder
153154
/import-export
154155
/troubleshooting

source/indexes.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _compass-indexes:
22

3-
===========
4-
Indexes Tab
5-
===========
3+
==============
4+
Manage Indexes
5+
==============
66

77
.. default-domain:: mongodb
88

@@ -71,4 +71,3 @@ Drop an Index
7171
---------------
7272

7373
.. include:: /includes/steps/drop-index.rst
74-

source/instance.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,4 @@ For more information about the :guilabel:`Performance` tab, see
7171
.. toctree::
7272
:titlesonly:
7373

74-
/databases
7574
/performance

0 commit comments

Comments
 (0)