Results of 1 - 6 of about 6 for maxTimeMS (0.002 sec.)
- MongoDB\Driver\Manager::executeQuery — Execute a database query | PHP 8.3 10931
- MongoDB\Driver\Manager::executeQuery (mongodb >=1.0.0) MongoDB\Driver\Manager::executeQuery — Execute a database query 説明 final public function MongoDB\Driver\Manager::executeQuery ( string $namespace , MongoDB\Driver\Query $query , ? arr
... (stdClass)#6 (1) { ["x"]=> int(3) } object(stdClass)#7 (1) { ["x"]=> int(2) } 例2 Limiting execution time for a query The "maxTimeMS" MongoDB\Driver\Query option may be used to limit the execution time of a query. Note that this time limit is enforced on ... p $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:27017' ); $filter = [ 'x' => [ '$gt' => 1 ]]; $options = [ 'maxTimeMS' => 1000 , ]; $query = new MongoDB\Driver\Query ( $filter , $options ); $cursor = $manager -> executeQuery ( 'db.collectio ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executequery.html
- MongoDB\Driver\Query::__construct — Create a new Query | PHP 8.3 10931
- MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function MongoDB\Driver\Query::__construct ( array | object $filter , ? array $queryOptions = null ) Constructs a n
... ation if no data is available. This option should only be used in conjunction with the "tailable" and "awaitData" options. maxTimeMS int The cumulative time limit in milliseconds for processing operations on the cursor. MongoDB aborts the operation at the ... earliest following interrupt point. Falls back to the deprecated "$maxTimeMS" modifier if not specified. min array | object The inclusive lower bound for a specific index. Falls back to the deprecate ... meMS" option. PECL mongodb 1.2.0 Added the "allowPartialResults" , "collation" , "comment" , "hint" , "max" , "maxScan" , "maxTimeMS" , "min" , "returnKey" , "showRecordId" , and "snapshot" options. Renamed the "partial" option to "allowPartialResults" . ...
-
https://man.mtool.work/php/8.3/mongodb-driver-query.construct.html
- The MongoDB\Driver\ReadConcern class | PHP 8.3 9852
- The MongoDB\Driver\ReadConcern class (mongodb >=1.1.0) はじめに MongoDB\Driver\ReadConcern controls the level of isolation for read operations for replica sets and replica set shards. This option requires MongoDB 3.2 or later. クラス概要 fi
... rantees only apply if read operations specify a query filter that uniquely identifies a single document. ヒント Always use maxTimeMS with linearizable read concern in case a majority of data bearing members are unavailable. maxTimeMS ensures that the oper ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-readconcern.html
- MongoDB\Driver\Command::__construct — Create a new Command | PHP 8.3 9852
- MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public function MongoDB\Driver\Command::__construct ( array | object $document , ? array $commandOptions = null ) Co
... mmands can accept options as well, as part of the normal structure that you create to send to the server. For example, the maxTimeMS option can be passed with most commands to restrict the amount of time a specific command can run for on the server. <?php ... ongodb://localhost:27017" ); $command = new MongoDB\Driver\Command ( array( "distinct" => "beer" , "key" => "beer_name" , "maxTimeMS" => 10 , ) ); try { $cursor = $manager -> executeCommand ( "beerdb" , $command ); $response = $cursor -> toArray ()[ 0 ]; ...
-
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
- The MongoDB\Driver\Exception\ExecutionTimeoutException class | PHP 8.3 6617
- The MongoDB\Driver\Exception\ExecutionTimeoutException class (mongodb >= 1.0.0) はじめに Thrown when a query or command fails to complete within a specified time limit (e.g. » maxTimeMS ). クラス概要 final class MongoDB\Driver\Exception\Exe
...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-executiontimeoutex...
- MongoDB\Driver\Manager::executeCommand — Execute a database command | PHP 8.3 6617
- MongoDB\Driver\Manager::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Manager::executeCommand — Execute a database command 説明 final public function MongoDB\Driver\Manager::executeCommand ( string $db , MongoDB\Driver\Command $command ,
... t(2) } 例3 Limiting execution time for a command The execution time of a command may be limited by specifying a value for "maxTimeMS" in the MongoDB\Driver\Command document. Note that this time limit is enforced on the server side and does not take networ ... calhost:27017' ); $command = new MongoDB\Driver\Command ([ 'count' => 'collection' , 'query' => [ 'x' => [ '$gt' => 1 ]], 'maxTimeMS' => 1000 , ]); $cursor = $manager -> executeCommand ( 'db' , $command ); var_dump ( $cursor -> toArray ()[ 0 ]); ?> If the ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.executecommand.html
PREV
1
NEXT