note 103502 modified in mongodb.command by danbrown

From: Date: Sat, 16 Apr 2011 18:04:01 +0000
Subject: note 103502 modified in mongodb.command by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178914@lists.php.net to get a copy of this message
I tried to write MapReduce. Unfortunately, out => array('replace' => 'collName') did not work for me. Instead, the below code works <?php $mongo->command(array( 'mapreduce' => 'events', 'map' => $map, 'reduce' => $reduce, 'out' => 'mapReduceEventStats' )); ?> --was-- I tried to write MapReduce. Unfortunately, out => array('replace' => 'collName') did not work for me. Instead, the below code works $mongo->command(array( 'mapreduce' => 'events', 'map' => $map, 'reduce' => $reduce, 'out' => 'mapReduceEventStats' )); http://php.net/manual/en/mongodb.command.php

« previous php.notes (#178914) next »