发布于 2015-09-14 15:13:59 | 150 次阅读 | 评论: 0 | 来源: 网络整理

These release notes outline a change to all driver interfaces released in November 2012. See release notes for specific drivers for additional information.

Changes

As of the releases listed below, there are two major changes to all drivers:

  1. All drivers will add a new top-level connection class that will increase consistency for all MongoDB client interfaces.

    This change is non-backward breaking: existing connection classes will remain in all drivers for a time, and will continue to operate as expected. However, those previous connection classes are now deprecated as of these releases, and will eventually be removed from the driver interfaces.

    The new top-level connection class is named MongoClient, or similar depending on how host languages handle namespacing.

  2. The default write concern on the new MongoClient class will be to acknowledge all write operations [1]. This will allow your application to receive acknowledgment of all write operations.

    See the documentation of Write Concern for more information about write concern in MongoDB.

    Please migrate to the new MongoClient class expeditiously.

[1]The drivers will call getLastError without arguments, which is logically equivalent to the w: 1 option; however, this operation allows replica set users to override the default write concern with the getLastErrorDefaults setting in the 副本集配置.

Releases

The following driver releases will include the changes outlined in Changes. See each driver’s release notes for a full account of each release as well as other related driver-specific changes.

  • C#, version 0.7
  • Java, version 2.10.0
  • Node.js, version 1.2
  • Perl, version 0.601.1
  • PHP, version 1.4
  • Python, version 2.4
  • Ruby, version 1.8
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务