InterviewSolution
Saved Bookmarks
| 1. |
How are recursive queries supported within MongoDB? |
|
Answer» BSON is a binary JSON. Inside the database, there is a need for binary representation for efficiency. There are 3 major reasons for preference to BSON:
Example: In below document, we have a large subdocument named hobbies, now suppose we want to query FIELD "active" skipping "hobbies" we can do so in BSON due to its linear serialization property. {-ID: "32781", name: "Smith”, age: 30, hobbies: { .............................500 KB ..............}, active: "true”}
|
|