欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

db RethinkDB

程序员文章站 2024-01-13 13:09:58
...

s

RethinkDB 已倒闭。

 

如何安装RethinkDB

https://www.rethinkdb.com/docs/start-on-startup/

Install RethinkDB on CentOS

https://www.rethinkdb.com/docs/install/centos/

https://download.rethinkdb.com/dist/rethinkdb-2.3.6.tgz

http://download.rethinkdb.com/centos/7/x86_64/rethinkdb-2.3.6.x86_64.rpm

RethinkDB和MongoDB的对比

https://www.rethinkdb.com/docs/comparison-tables/

 

 

Development

  RethinkDB MongoDB
Platforms Linux, OS X, Windows Linux, OS X, Windows, Solaris
Data model JSON documents BSON documents
Data access Unified chainable dynamic query language Dynamic rich query language
JavaScript integration V8 engine Spidermonkey/V8 engine
Access languages JSON protocol
3 official libraries
Many community supported libraries
BSON protocol
13 official libraries
Many community supported libraries
Index types Primary key
Compound
Secondary
Geospatial
Arbitrarily computed
Unique (unsharded only)
Compound
Secondary
Geospatial
Sparse
Cloud deployment AWS, dotCloud, Compose.io Many cloud platforms

 

Administration

  RethinkDB MongoDB
CLI tools ReQL admin commands JavaScript interactive shell
UI tools Web-based admin UI Simple HTTP interface
Failover Auto primary re-election Replica-sets with auto primary re-election
Backup rethinkdb-dump mongodump or snapshotting

 

Scaling

  RethinkDB MongoDB
Sharding Guided range-based sharding
(supervised/guided/advised/trained)
Automatic range-based sharding
Replication Sync and async replication Replica-sets with log-shipping
Multi datacenter Server grouping via tags with per-group replication and write acknowledgements Supports different options for multi DC
Map-reduce Multiple map-reduce functions
Executing ReQL or JavaScript operations
JavaScript-based map-reduce
Performance No published results No official results
Concurrency Event-based and coroutines
Asynchronous block-level MVCC
Threading
Read-write locks

 

Architecture

  RethinkDB MongoDB
Consistency model Immediate/strong consistency with support for out of date reads Immediate/strong consistency with support for reading from replicas
Atomicity Document level Document level
Durability Durable Durable only with journaling enabled
Storage engine Log-structured B-tree serialization
with incremental, fully concurrent garbage compactor
Memory mapped files
Query distribution engine Transparent routing, distributed and parallelized Transparent routing requires additional mongos processes
Caching engine Custom per-table configurable B-tree aware caching OS-level memory mapped files LRU

 

 

end