PHP » GoLang |
login |
register |
about
|
GoLang MongoCursor::snapshot
request it (302)
GoLang replacement for PHP's MongoCursor::snapshot
[edit | history]
MongoCursor::snapshot(PECL mongo >=0.9.4) MongoCursor::snapshot — Use snapshot mode for the query DescriptionUse snapshot mode for the query. Snapshot mode ensures that a document will not be returned more than once because an intervening write operation results in a move of the document. Documents inserted or deleted during the lifetime of the cursor may or may not be returned, irrespective of snapshot mode. Queries with short responses (less than 1MB) are always effectively snapshotted. Snapshot mode may not be used with sorting, explicit hints, or queries on sharded collections. ParametersThis function has no parameters. Return ValuesReturns this cursor. Errors/ExceptionsThrows MongoCursorException if this cursor has started iterating. See AlsoMongoDB core docs on » $snapshot operator. |
more
Recently updated
more
Most requested
more
Last requests
|