【NoSQL】非关系数据库

非关系数据库nosql

NoSQL database is next generation Database Management Systems mostly addressing some of the points: being non-relational, distributed,open-source and horizontally scalable.

用来解决特定问题的数据库

特点:

1.没有关系模式schema-free/non-relational,与关系数据库不同

2.快速处理rapid process,数据放在内存中处理

3.distributed process分布式

4.big data

5.easy program

6.open-source

7.水平式(横向拓展性)horizontally scalable

类型

1.Document store文档数据库,以xml与json的形式存储,例子:视频网站,blog

2.key value/tuple store以个数,键值对的形式存储,处理速度快

3.

4.Graph Database Management System

5.Multimodel Database Management System

RDBMS与NoSQL的区别

NoSQL is better than RDBMS because of the following reasons/properities of NoSQL
It supports semi-structured data and volatile data
It does not have schema
Read/Write throughput is very high
Horizontal scalability can be achieved easily
Will support Bigdata in volumes of Terra Bytes & Peta Bytes 

Provides good support for Analytic tools on top of Bigdata 

Can be hosted in cheaper hardware machines
In-memory caching option is available to increase the performance of queries
Faster development life cycles for developers
Still, RDBMS is better than NoSQL for the following
reasons/properties of RDBMS
Transactions with ACID properties - Atomicity, Consistency,Isolation & Durability
Adherence to Strong Schema of data being written/read Real time query management ( in case of data size < 10 Tera bytes)
Execution of complex queries involving join & group by clauses

键值数据库Key Value Store

A key-value database, or key-value store, is a data storage paradigm designed for storing, retrieving, and managing associative arrays,and a data structure more commonly known
today as a dictionary or hash table.

advantages:

1. Lightweight(simple data structure:key-value),

2.Rapid(in memory and simple),

3.Distributed system.

Disadvantages:

1. Weakly retrieve ability (key-value), 

2.Lack of data constraints,

3.Hardly handle data Relationship

特点:简单,速度快,在内存中

键值要成对,形成映射关系

命名空间namespace:java的包(package)

内存中的in-memory:利用了缓存技术,把常用的数据放在内存中

redis is an open-source in memory storage, used as a distributed, in-memory key-value database

优势:轻量级lightweight,快速rapid,分布式系统distributed system

劣势:查询能力弱weakly retrieve ability,缺少数据之间的约束lack of data constraints,难解决数据之间的关系hardly handle data relationship

原则(扬长避短)

1.编程,

文档数据库document store

A document-oriented database, or document store, is a computer program and data storage system designed for storing, retrieving and managing document-oriented information,also known as semi-structured data.

Advantages: 

1.Simple(schema-free), 

2.Relatively efficient,

3.Standard document format,

4.Powerful retrieve ability(semi-structured), 

5.Distributed system.

Disadvantages: 

1.Lack of data constraints, 

2.Data redundancy, 

3.Relatively inefficient.

半结构化的数据库

优势:无需事先定义结构Simple(schema—free),相对关系数据库高效Relatively eficient,文档格式Standard document format,查询能力强Powerful retrieve ability(semi-structured),分布式Distributed system

劣势:没有数据约束Lack of data constraints,数据会出现冗余Data redundancy,相对键值对数据库低效Relatively ineficient

列族数据库Column families store

A column families database(or wide—column store) is a column-oriented DBMS and therefore a special type of NosQL database. It uses tables, rows, and columns,but unlike a relational database, the names and format of the columns can vary from row to row in the same table

优势:为大数据准备suitable for big data processing,易于增加新的列easy to add new columns,开发工具多tons of development tool,检索能力强powerful retrieve ability,数据读写快High-speed data I/O

劣势:系统复杂complex system,数据结构复杂complex data structure,难学难用hard to learn/use

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

岩塘

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值