As the title says I like to embedd the MongoDB server into my own C++ application. I haven't found this mode in the documentation. What I was looking for is something like SQLite or Firebird in the embedded mode. Is this also possible with MongoDB? (Without programming it myself).
It's an open source, embeddable document database. While it can function as a standalone document database, its real value is in its ability to synchronize with remote document databases. It may be aimed at iOS / Android, but it can run on anything with a JVM. Save this answer.
Embedded documents are an efficient and clean way to store related data, especially data that's regularly accessed together. In general, when designing schemas for MongoDB, you should prefer embedding by default, and use references and application-side or database-side joins only when they're worthwhile.
Or in other words, when a collection has a document, this document contains another document, another document contains another sub-document, and so on, then such types of documents are known as embedded/nested documents. Notes – In MongoDB, you can only nest document up to 100 levels.
There is no way to embed MongoDB right now - but on the wishlist of many people.
You should consider EJDB.
EJDB is the C library based on modified version of Tokyo Cabinet. JSON representation of queries and data implemented with API based on C BSON, MongoDB-like queries and overall philosophy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With