The MongoCursorTimeoutException class
(PECL mongo >= 1.0.0)
Введение
Caused by a query timing out. You can set the length of time to wait before this exception is thrown by calling MongoCursor::timeout() on the cursor or setting MongoCursor::$timeout. The static variable is useful for queries such as database commands and MongoCollection::findOne(), both of which implicitly use cursors.
Обзор классов
MongoCursorTimeoutException
extends
MongoCursorException
{
}- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Расширения для работы с базами данных отдельных производителей
- MongoDB
- The MongoException class
- The MongoResultException class
- The MongoCursorException class
- The MongoCursorTimeoutException class
- The MongoConnectionException class
- The MongoGridFSException class
- The MongoDuplicateKeyException class
- The MongoProtocolException class
- The MongoExecutionTimeoutException class
- The MongoWriteConcernException class
Коментарии
If you wish to turn off timeouts, do...
MongoCursor::$timeout = -1;