Redis和其它键值对存储数据库有什么不同
2016-09-24 11:14
375 查看
原文地址:http://redis.io/topics/faq
There are two main reasons.
Redis is a different evolution path in the key-value DBs where values can contain more complex data types, with atomic operations defined on those data types. Redis data types are closely related to fundamental data structures and are exposed to the programmer
as such, without additional abstraction layers.
Redis is an in-memory but persistent on disk database, so it represents a different trade off where very high write and read speed is achieved with the limitation of data sets that can't be larger than memory. Another advantage of in memory databases is
that the memory representation of complex data structures is much simpler to manipulate compared to the same data structure on disk, so Redis can do a lot, with little internal complexity. At the same time the two on-disk storage formats (RDB and AOF) don't
need to be suitable for random access, so they are compact and always generated in an append-only fashion (Even the AOF log rotation is an append-only operation, since the new version is generated from the copy of data in memory).
Why Redis is different compared to other key-value stores?
There are two main reasons.Redis is a different evolution path in the key-value DBs where values can contain more complex data types, with atomic operations defined on those data types. Redis data types are closely related to fundamental data structures and are exposed to the programmer
as such, without additional abstraction layers.
Redis is an in-memory but persistent on disk database, so it represents a different trade off where very high write and read speed is achieved with the limitation of data sets that can't be larger than memory. Another advantage of in memory databases is
that the memory representation of complex data structures is much simpler to manipulate compared to the same data structure on disk, so Redis can do a lot, with little internal complexity. At the same time the two on-disk storage formats (RDB and AOF) don't
need to be suitable for random access, so they are compact and always generated in an append-only fashion (Even the AOF log rotation is an append-only operation, since the new version is generated from the copy of data in memory).
相关文章推荐
- mongodb,redis,hbase 三者都是nosql数据库,他们的最大区别和不同定位是什么?
- 不同应用共享redis应用,但分数据库存储数据
- Set List Map存储方式个各有什么不同
- Set List Map存储方式个各有什么不同
- Java中的Set List Map 存储方式个各有什么不同
- 存储过程调用不同数据库的数据
- redis数据库键值设计
- 最近的项目,也许是产品吧,用的客户好几个,数据库也经常更新,所以就写了个比较数据库表和字段有不同的存储过程
- (转)浅谈 Redis 数据库的键值设计
- 浅谈redis数据库的键值设计
- 各数据库关于显示成男女各有不同的sql语句,有没有什么统一的标准写法呢???
- Redis 数据库的键值设计
- VIP俱乐部与其它SNS有什么不同?
- Redis(超高性能数据库)持久化Key-Value数据存储
- Redis(超高性能数据库)持久化Key-Value数据存储
- Android数据存储方式:SharePreference、SQLite、ContentProvider有什么不同?
- 调试存储过程或触发器时请先看看是本地数据库还是其它服务器
- 键值数据库—Redis(一) 基础入门
- 空间和数据库存储的区别是什么
- 浅谈REDIS数据库的键值设计