MongoDB core elements

In order to understand the capabilities of MongoDB, you need to learn the core elements the database is composed of. Actually, MongoDB is organized with a set of building blocks, which include the following:

  • Database: This is, just like for the database, the top-level element. However, a relational database contains (mostly) tables and views. A Mongo Database, on the other hand, is a physical container of a structure called a collection. Each database has its own set of files on the filesystem. A single MongoDB server typically has multiple databases.
  • Collection: This is a set of MongoDB documents. A collection is the equivalent of an RDBMS table. There can be only one collection with that name on the database but obviously ...

Get MongoDB for Java Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.