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
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
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
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
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
上一篇: db RethinkDB