link: Non-Relational Databases

Document-Oriented Databases

Content

Document databases are arguably the most multi-purpose databases of these four. Each piece of data is stored as a document, commonly in JSON(BSON, or XML), where the keys are exposed for querying. The shape of each document could be different. Each document can be of a different structure, but there is also an option to create groupings of documents called collections. These collections can be organized hierarchically, which creates ways to query the data relationally without losing flexibility.

These databases each offer unique features that may be more suitable for specific use cases, such as mobile apps needing offline data synchronization or real-time applications requiring immediate data availability.