php - Does MongoDB::execute uses mongos eval() internally?
The PHP Mongo Driver allows me to execute code in the database. Does this work in sharded environments? I know, that evaluating code with eval() doesn't work in a sharded environment.
$db->execute( new MongoCode('SomeFunc(o)', array( 'o' => array('name' => 'test') )) );
In short: no.
UPDATE: I missed that part in your question about sharded environment which quite changes the short answer. ;)