RethinkDB 2.0 候選版本發布,分布式數據庫
RethinkDB 2.0 發布候選版本,并可以進行測試。RethinkDB 2.0 旨在讓快速建立和縮放實時應用程序更加容易,而2.0版本是其重要的里程碑。除了性能和穩定性上的改進,2.0版本還包括了一些值得關注的新特點,以補充 我們在1.16版本中引入的實時功能:
-
Support for attaching a changefeed to the get_all command.
-
Support for attaching a changefeed to the union command.
-
Optional EventMachine integration for performing asynchronous queries in the Ruby driver.
-
Optional Tornado integration for performing asynchronous queries in the Python driver.
-
A new feature in the cursor API that supports consuming the next element in a stream without blocking.
Source:http://rethinkdb.com/blog/2.0-release-candidate/
關于 RethinkDB
RethinkDB 設計用來存儲 JSON 文檔的分布式數據庫,可通過簡單操作實現多機分布式存儲。支持表的聯合和分組查詢。
特點:
簡單編程模型
-
JSON 數據模型和一致性
-
分布式聯合查詢、子查詢、聚合查詢和原子更新操作
-
Hadoop 風格的 map/reduce.
輕松管理
-
提供友好的 Web 和命令行管理工具
-
服務器和網絡故障時的謹慎處理
-
多數據中心復制和故障轉移
水平伸縮
-
數據分片和復制到多個節點
-
自動化并行查詢和分布式查詢
-
通過 MVCC 并發實現無鎖操作
數據插入和查詢示例:
r.table('users').insert({'name': 'Slava', 'age': 29 }).run()r.table('users').filter(lambda doc: doc['age'] > 29)).run()