jadell/Neo4jPHP — Issue #16: Transparent batches
Author: jadell
Created: 2011-10-26 03:37:10+00:00
State: open

Allow batches to be opened and committed transparently. Example:

$batch = $client->startBatch();
// None of the following operations are sent to the server until...
$nodeA->save();
$nodeB->save();
$nodeA->relateTo($nodeB, 'KNOWS')->save();
$nameIndex->add($nodeB, 'name', 'foo');
// ...now
$client->commitBatch();
// or
$batch->commit();

Maybe in the future, all data operations will be wrapped in an implicit batch?