MongoCursorTimeoutException
全部标签 我有一个查询,它在一个庞大的集合(超过48M)中查找数据,但即使我添加timeout=-1到它,它仍然会抛出MongoCursorTimeoutException异常(exception)..return\DB::connection('mongodb')->collection('stats')->timeout(-1)->where('ip','=',$alias)->where('created_at','>=',new\DateTime($date))->where('created_at','count();我正在使用这个库:https://github.com/jensse
我有一个查询,它在一个庞大的集合(超过48M)中查找数据,但即使我添加timeout=-1到它,它仍然会抛出MongoCursorTimeoutException异常(exception)..return\DB::connection('mongodb')->collection('stats')->timeout(-1)->where('ip','=',$alias)->where('created_at','>=',new\DateTime($date))->where('created_at','count();我正在使用这个库:https://github.com/jensse
我正在运行从mongodb获取数据的php脚本。我有一个非常庞大的数据库,我得到了这个异常..我的mongodb版本是1.6.5PHPFatalerror:Uncaughtexception'MongoCursorTimeoutException'withmessage'cursortimedout(timeout:30000,timeleft:0:0,status:0)我的查询是这样的privatefunctionexecuteRegex($start_date,$end_date,$source,$collection,$db){$criteria=array('date'=>ar
我正在运行从mongodb获取数据的php脚本。我有一个非常庞大的数据库,我得到了这个异常..我的mongodb版本是1.6.5PHPFatalerror:Uncaughtexception'MongoCursorTimeoutException'withmessage'cursortimedout(timeout:30000,timeleft:0:0,status:0)我的查询是这样的privatefunctionexecuteRegex($start_date,$end_date,$source,$collection,$db){$criteria=array('date'=>ar