You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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>
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1259,18 +1259,27 @@ as key-value pair, document-oriented, etc.
1259
1259
1260
1260
<details>
1261
1261
<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.
1262
1265
</b></details>
1263
1266
1264
1267
<details>
1265
1268
<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.
1266
1271
</b></details>
1267
1272
1268
1273
<details>
1269
1274
<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.
1270
1277
</b></details>
1271
1278
1272
1279
<details>
1273
1280
<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.
1274
1283
</b></details>
1275
1284
1276
1285
##### Queries
@@ -1285,6 +1294,9 @@ as key-value pair, document-oriented, etc.
1285
1294
1286
1295
<details>
1287
1296
<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).
1288
1300
</b></details>
1289
1301
1290
1302
<details>
@@ -2029,7 +2041,7 @@ This is where data is stored and also where different processing takes place (e.
2029
2041
<details>
2030
2042
<summary>What is a master node?</summary><br><b>
2031
2043
2032
-
Par of a master node responsibilites:
2044
+
Part of a master node responsibilites:
2033
2045
* Track the status of all the nodes in the cluster
2034
2046
* Verify replicas are working and the data is available from every data node.
2035
2047
* No hot nodes (no data node that works much harder than other nodes)
0 commit comments