Jump to content

Multi-model database

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Nosql.analyst (talk | contribs) at 16:38, 7 January 2015 (initial article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Most database management systems are organized around a single data model that determines how data can be organized, stored, and manipulated. In contrast, a multi-model database is designed to support multiple data models against a single, integrated backend.[1] Document, graph, relational, and key-value models are examples of data models that may be supported by a multi-model database.

Background

The relational data model became popular after its publication by Edgar F. Codd in 1970. Due to increasing requirements for horizontal scalability and fault tolerance, NoSQL databases became prominent after 2009. NoSQL databases use a variety of data models, with document, graph, and key-value models being popular.[2]

Enterprises and applications that require multiple data models sometimes adopt a strategy of polyglot persistence[3], using separate data stores for each model. This strategy has two major disadvantages: it leads to a significant increase in operational complexity, and there is no support for maintaining data consistency across the separate data stores.

Multi-model databases are intended to offer the data modeling advantages of polyglot persistence without its disadvantages. Operational complexity, in particular, is reduced through the use of a single data store.[2]

Examples

Database Key-value SQL JSON Graph Transactions
FoundationDB Yes Yes Yes Yes Full ACID, multi-key, cross-node
OrientDB No Yes Yes Yes In-RAM only, limited durability
ArangoDB Yes No Yes Yes pessimistic locking and configurable durability

User-defined data models

In addition to offering multiple data models in a single data store, some databases allow developers to easily define custom data models. This capability is enabled by ACID transactions with high performance and scalability. In order for a custom data model to support concurrent updates, the database must be able to sychronize updates across multiple keys. ACID transactions, if they are sufficiently performant, allow such sychronization.[4] JSON documents, graphs, and relational tables can all be implemented in a manner that inherits the horizontal scalability and fault-tolerance of the underlying data store.

See also

References