Refer to MongoCursor::maxTimeMS() from timeout() docs

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334482 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jeremy Mikola 2014-08-04 21:17:50 +00:00
parent b6654cdfa5
commit a3e949b1ea

View file

@ -97,6 +97,8 @@ while ($cursor->hasNext()) {
This does not cause the MongoDB server to cancel long-running operations;
it only instructs the driver to stop waiting for a response and throw a
<classname>MongoCursorTimeoutException</classname> after a set time.
If you need to specify a server-side timeout for a query, consider using
<methodname>MongoCursor::maxTimeMS</methodname>.
</para>
</warning>
</refsect1>