JSON 文檔分布式數據庫,RethinkDB 2.2.0 發布
RethinkDB 設計用來存儲 JSON 文檔的分布式數據庫,可通過簡單操作實現多機分布式存儲。支持表的聯合和分組查詢。
Atomic changefeeds 使得動態構建實時應用更簡單:用戶可以使用單個代碼路徑來填充應用的初始數據,并且繼續接收實時數據更新。這大大提升了系統的性能,改進了系統伸縮性,提升 RethinkDB 集群大小。
詳細改進請看發行說明。
兼容性
RethinkDB 1.16 以上版本可以自動遷移,但是升級之前需要備份好數據。
如果是 RethinkDB 1.14.x 或者 1.15.x 升級,需要先遷移二級索引:
-
安裝 RethinkDB 2.0.5.
</li> -
更新 RethinkDB Python 驅動 (
</li>sudo pip install 'rethinkdb<2.1.0'). -
重建索引:
</li> </ul>rethinkdb index-rebuild.RethinkDB 1.13 及以下版本,用戶需要手動使用:
rethinkdb dump升級API 不兼容改進
-
Changefeeds on
</li>.orderBy.limitas well as.getqueries previously provided initial results by default. You now need to include the optional argumentincludeInitial: trueto.changesto achieve the same behavior. -
The deprecated protocol buffer driver protocol is no longer supported. The newer JSON protocol is now the only supported driver protocol. Older drivers using the deprecated protocol no longer work with RethinkDB 2.2.0. See the drivers list for up-to-date drivers.
</li>-
If you're using Java, please note that at the time of writing, existing community drivers have not been updated to use the newer JSON protocol. However, anofficial Java driver is in active development and will be available soon.
</li> </ul> -
Certain argument errors that used to throw
</li> </ul>ReqlDriverErrorexceptions now throwReqlCompileErrorexceptions. See #4669 for a full list of changes.支持的版本
RethinkDB 2.2.0 提供 Ubuntu 15.10 (Wily Werewolf) 和 CentOS 7 官方包,不再提供 Ubuntu 10.04 (Lucid Lynx) 包。
新特性
-
Added full support for atomic changefeeds through the
</li>include_initialoptarg (#3579) -
Added a
</li>valuescommand to obtain the values of an object as an array (#2945) -
Added a
</li>conn.servercommand to identify the server for a given connection (#3934) -
Extended
</li> </ul>r.uuidto accept a string and work as a hash function (#4636)改進
-
Server
</li>-
Improved the scalability of range queries on sharded tables (#4343)
</li> -
Improved the performance of
</li>betweenqueries on secondary indexes (#4862) -
Reduced the memory overhead for large data sets (#1951)
</li> -
Redesigned the internal representation of queries to improve efficiency (#4601)
</li> -
Removed the deprecated protocol buffer driver protocol (#4601)
</li> -
Improved the construction of secondary indexes to make them resumable and to reduce their impact on any production workload (#4959)
</li> -
Improved the performance when using
</li>getAllwith a secondary index in some edge cases (#4948) -
Removed the limit of 1024 concurrent changefeeds on a single connection (#4732)
</li> -
Implemented automatically growing coroutine stacks to avoid stack overflows (#4462)
</li> -
Optimized the deserialization of network messages to avoid an extra copy (#3734)
</li> -
Added a
</li>raft_leaderfield to a table's status to expose its current Raft leader (#4902) -
Made the handling of invalid lines in the
</li> </ul>'logs'system table more robust (#4929) -
ReQL
</li>-
</li>indexStatusnow exposes the secondary index function (#3231) -
Added an optarg called
</li>changefeed_queue_sizeto specify how many changes the server should buffer on a changefeed before generating an error (#3607) -
Extended
</li>branchto accept an arbitrary number of conditions and values (#3199) -
Strings can now contain null characters (except in primary keys) (#3163)
</li> -
Streams can now be coerced directly to an object (#2802)
</li> -
Made
</li>coerceTo('BOOL')consistent withbranch(#3133) -
Changefeeds on
</li>filterandmapqueries involving geospatial terms are now allowed (#4063) -
Extended
</li> </ul>orandandto accept zero arguments (#4132) -
Web UI
</li>-
The Data Explorer now allows executing only parts of a query be selecting them (#4814)
</li> </ul> -
All drivers
</li>-
Improved the consistency of ReQL error types by throwing
</li> </ul>ReqlCompileErrorrather thanReqlDriverErrorfor certain errors (#4669) -
JavaScript driver
</li>-
Added an
</li> </ul>eachAsyncmethod on cursors that behaves likeeachbut also returns a promise (#4784) -
Python driver
</li>-
Implemented an API to override the default JSON encoder and decoder (#4825, #4818)
</li> </ul> </ul>Bug 修復
-
Server
</li>-
Fixed a segmentation fault that could happen when disconnecting a server while having open changefeeds (#4972)
</li> -
Updated the description of the
</li>--server-nameparameter inrethinkdb --help(#4739) -
Fixed a crash with the message "Guarantee failed: [ts->tv_nsec >= 0 && ts->tv_nsec < (1000LL * (1000LL * 1000LL))] " (#4931)
</li> -
Fixed a problem where backfill jobs didn't get removed from the
</li>'jobs'table (#4923) -
Fixed a memory corruption that could trigger a segmentation fault during
</li>getIntersectingqueries (#4937) -
Fixed an issue that could stop data files from RethinkDB 1.13 from migrating properly (#4991)
</li> -
Fixed a "Guarantee failed: [pair.second] key for entry_t already exists" crash when rapidly reconnecting servers (#4968)
</li> -
Fixed an "Uncaught exception of type interrupted_exc_t" crash (#4977)
</li> -
Added a check to catch
</li> </ul>r.minvalandr.maxvalvalues when writing to the'_debug_scratch'system table (#4032) -
ReQL
</li>-
Fixed the error message that's generated when passing in a function with the wrong arity (#4189)
</li> -
Fixed a regression that caused
</li> </ul>r.asc("test")to not fail as it should (#4951) -
JavaScript driver
</li>-
Object keys in
</li> </ul> </ul>toStringare now properly quoted (#4997)下載:https://github.com/rethinkdb/rethinkdb/archive/v2.2.0.zip
來自:http://www.oschina.net/news/68065/rethinkdb-2-2-0
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-
-
-
-
-
-
-
-
-
-
-