Difference between Document-based and Key/Value-based databases?

前端 未结 2 640
一个人的身影
一个人的身影 2020-12-22 17:05

I know there are three different, popular types of non-sql databases.

  • Key/Value: Redis, Tokyo Cabinet, Memcached
  • ColumnFamily: Cassandra, HBase
  • <
2条回答
  •  渐次进展
    2020-12-22 17:54

    Ayende has given a nice explanation regarding the difference between Key-Value and Document database:

    A document database is, at its core, a key/value store with one major exception. Instead of just storing any blob in it, a document db requires that the data will be store in a format that the database can understand (i.e. JSON, XML etc). In most doc dbs, that means that we can now allow queries on the document data.

提交回复
热议问题