- 论坛徽章:
- 0
|
回复 2# myeverthing
group在运行后可以直接获取结果
而mapreduce
my $res = $db->runCommand($cmd);
的$res的结果
$VAR1 = bless( {
'_database' => bless( {
'_connection' => bless( {
'find_master' => 0,
'query_timeout' => 30000,
'db_name' => 'admin',
'auto_reconnect' => 1,
'w' => 1,
'_servers' => {},
'ts' => 0,
'right_port' => 27017,
'wtimeout' => 1000,
'left_port' => 27017,
'port' => 27017,
'host' => '127.0.0.1',
'max_bson_size' => 16777216,
'timeout' => 20000,
'auto_connect' => 1
}, 'MongoDB::Connection' ),
'name' => 'passport'
}, 'MongoDB: atabase' ),
'name' => 'runCommand'
}, 'MongoDB::Collection' ); |
|