Skip to content

Instantly share code, notes, and snippets.

@Techmind
Created April 9, 2012 15:32
Show Gist options
  • Save Techmind/2344266 to your computer and use it in GitHub Desktop.
Save Techmind/2344266 to your computer and use it in GitHub Desktop.
./cli jobs/tools/multi_run --count=8 --code='$db = $factory->getDaemonActionsBackend("riak"); $redis = $factory->getRedis();$file = $factory->getDaemonActionsBackend("file"); while ($id = $redis->popFromList("testList2")) { $actions = $file->getUserActions($id, null, array(), 5000); $actions[0] = array_reverse($actions[0]); $db->writeActions($actions[0], $id);}'
./cli jobs/tools/multi_run --count=8 --code='$db = $factory->getDaemonActionsBackend("db_sharded"); $redis = $factory->getRedis();$file = $factory->getDaemonActionsBackend("file"); while ($id = $redis->popFromList("testList3")) { $actions = $file->getUserActions($id, null, array(), 5000); $actions[0] = array_reverse($actions[0]); $db->writeActions($actions[0], $id);}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment