downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoCursor::sort> <MongoCursor::slaveOkay
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoCursor::snapshot

(PECL mongo >=0.9.4)

MongoCursor::snapshotこのクエリでスナップショットモードを使う

説明

public MongoCursor MongoCursor::snapshot ( void )

このクエリでスナップショットモードを使います。 スナップショットモードは、複製を返したりオブジェクトが失われたりせず クエリの実行開始時と終了時の両方でオブジェクトが存在することを保証します (クエリの途中でオブジェクトが新しくなったり削除されたりした場合は、 スナップショットモードであってもそれが返されることもあれば返されないこともあります)。

短い (1MB 未満の) クエリの応答は、常に事実上スナップショットになることに注意しましょう。

現在は、ソートや明示的なヒントを指定している場合はスナップショットモードは用いられません。

パラメータ

この関数にはパラメータはありません。

返り値

このカーソルを返します。

エラー / 例外

このカーソルの反復処理が始まっている場合に MongoCursorException をスローします。



add a note add a note User Contributed Notes MongoCursor::snapshot
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites