NucleusLogger.PERSISTENCE.debug("Performing reachability algorithm on object with id \""+ids[i]+"\"");
}
try
{
StateManager sm = findStateManager(findObject(ids[i], true, true, null));
sm.runReachability(currentReachables);
if (i % 10000 == 0 || i == ids.length-1)
{
// Flush every 10000 or on the last one to make sure tx cache is empty
flushInternal(true);
}