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, 23 Mar 2012

view this page in

MongoCursor::snapshot

(PECL mongo >=0.9.4)

MongoCursor::snapshotUse snapshot mode for the query

Açıklama

public MongoCursor MongoCursor::snapshot ( void )

Use snapshot mode for the query. Snapshot mode assures no duplicates are returned, or objects missed, which were present at both the start and end of the query's execution (if an object is new during the query, or deleted during the query, it may or may not be returned, even with snapshot mode).

Note that short query responses (less than 1MB) are always effectively snapshotted.

Currently, snapshot mode may not be used with sorting or explicit hints.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

Returns this cursor.

Hatalar/İstisnalar

Throws MongoCursorException if this cursor has started iterating.



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