« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for maxTimeMS (0.006 sec.)
The MongoDB\Driver\Exception\ExecutionTimeoutException class 13708
« MongoDB\Driver\Exception\Exception MongoDB\Driver\Exception\InvalidArgumentException » PHP Manual MongoDB\Driver\Exception The MongoDB\Driver\Exception\ExecutionTimeoutException class 検索 The MongoDB\Driver\Exception\ExecutionTimeoutExce ... n 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\ExecutionTimeoutException extends MongoDB\Driver\Exception\ServerExcept ... n 継承 Throwable RuntimeException InvalidArgumentException Thrown query command fails complete within specified time limit maxTimeMS 概要 implements ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-executiontimeoutex...
Execute a database query 9533
« MongoDB\Driver\Manager::executeCommand MongoDB\Driver\Manager::executeReadCommand » PHP Manual MongoDB\Driver\Manager Execute a database query 検索 MongoDB\Driver\Manager::executeQuery (mongodb >=1.0.0) MongoDB\Driver\Manager::executeQuer ... (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
Create a new Query 9533
« MongoDB\Driver\Query MongoDB\Driver\BulkWrite » PHP Manual MongoDB\Driver\Query Create a new Query 検索 MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function ... 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
Execute a database query 9533
« MongoDB\Driver\Manager::executeCommand MongoDB\Driver\Manager::executeReadCommand » PHP Manual MongoDB\Driver\Manager Execute a database query 検索 MongoDB\Driver\Manager::executeQuery (mongodb >=1.0.0) MongoDB\Driver\Manager::executeQuer ... (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
Create a new Query 9533
« MongoDB\Driver\Query MongoDB\Driver\BulkWrite » PHP Manual MongoDB\Driver\Query Create a new Query 検索 MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function ... 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 8330
« MongoDB\Driver\ReadPreference::getTagSets MongoDB\Driver\ReadConcern::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ReadConcern class 検索 The MongoDB\Driver\ReadConcern class (mongodb >=1.1.0) はじめに MongoDB\Driver\ReadC ... 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
Create a new Command 8330
« MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f ... 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\ReadConcern class 8330
« MongoDB\Driver\ReadPreference::getTagSets MongoDB\Driver\ReadConcern::bsonSerialize » PHP Manual MongoDB\Driver The MongoDB\Driver\ReadConcern class 検索 The MongoDB\Driver\ReadConcern class (mongodb >=1.1.0) はじめに MongoDB\Driver\ReadC ... 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
Create a new Command 8330
« MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f ... 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
Execute a database command 7145
« MongoDB\Driver\Manager::executeBulkWriteCommand MongoDB\Driver\Manager::executeQuery » PHP Manual MongoDB\Driver\Manager Execute a database command 検索 MongoDB\Driver\Manager::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Manager::exec ... 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 2 NEXT