Skip to content

Commit 47c39f6

Browse files
Contribution to MongoDB topic (bregman-arie#343)
* Responding to questions in Puppet section * responding to some MongoDB questions. * responding to some MongoDB questions * fixing the empty space * fixing a typing error * Update README.md Co-authored-by: andrzejsydor <andrzejsydor@users.noreply.github.com>
1 parent 6811a82 commit 47c39f6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,18 +1259,27 @@ as key-value pair, document-oriented, etc.
12591259

12601260
<details>
12611261
<summary>What is a document? What is a collection?</summary><br><b>
1262+
1263+
* A document is a record in MongoDB, which is stored in BSON (Binary JSON) format and is the basic unit of data in MongoDB.
1264+
* A collection is a group of related documents stored in a single database in MongoDB.
12621265
</b></details>
12631266

12641267
<details>
12651268
<summary>What is an aggregator?</summary><br><b>
1269+
1270+
* An aggregator is a framework in MongoDB that performs operations on a set of data to return a single computed result.
12661271
</b></details>
12671272

12681273
<details>
12691274
<summary>What is better? Embedded documents or referenced?</summary><br><b>
1275+
1276+
* There is no definitive answer to which is better, it depends on the specific use case and requirements. Some explainations : Embedded documents provide atomic updates, while referenced documents allow for better normalization.
12701277
</b></details>
12711278

12721279
<details>
12731280
<summary>Have you performed data retrieval optimizations in Mongo? If not, can you think about ways to optimize a slow data retrieval?</summary><br><b>
1281+
1282+
* Some ways to optimize data retrieval in MongoDB are: indexing, proper schema design, query optimization and database load balancing.
12741283
</b></details>
12751284

12761285
##### Queries
@@ -1285,6 +1294,9 @@ as key-value pair, document-oriented, etc.
12851294

12861295
<details>
12871296
<summary>What is the difference between find() and find_one()?</code></summary><br><b>
1297+
1298+
* `find()` returns all documents that match the query conditions.
1299+
* find_one() returns only one document that matches the query conditions (or null if no match is found).
12881300
</b></details>
12891301

12901302
<details>
@@ -2029,7 +2041,7 @@ This is where data is stored and also where different processing takes place (e.
20292041
<details>
20302042
<summary>What is a master node?</summary><br><b>
20312043

2032-
Par of a master node responsibilites:
2044+
Part of a master node responsibilites:
20332045
* Track the status of all the nodes in the cluster
20342046
* Verify replicas are working and the data is available from every data node.
20352047
* No hot nodes (no data node that works much harder than other nodes)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy