9.2.4

Document Databases

  • Definition: A type of non-relational database used to manage data that cannot be organized into traditional tabular formats.

Characteristics

  • Documents are stored in flexible formats and can contain complex data types, such as nested files and arrays.

  • Example: The file system on a computer resembles a document database.

Comparison with Relational Databases

  • Storage: Document databases can store multiple pieces of information in a single field unlike relational databases.

  • Data Format: Uses JSON or XML for data storage, contrasting with the row-column structure of relational databases.

Features of Document Databases

  • Flexibility: Documents can consist of varied fields within the same collection.

  • Searchability: Advanced search capabilities to navigate through unstructured data.

  • Natural Data Representation: Easier to represent data such as company inventories or blog posts in a natural manner.

robot