src/acdhOeaw/util/Indexer.php
private function handleAutoCommit(): bool {
        $diff = count($this->indexedRes) - count($this->commitedRes);
        if ($diff >= $this->autoCommit && $this->autoCommit > 0) {
            echo self::$debug ? " + autocommit" : '';
            $this->fedora->commit();
            $this->commitedRes = $this->indexedRes;
            $this->fedora->begin();
            return true;
        }
        return false;
    }
private function handleAutoCommit(): bool {
        $diff = count($this->indexedRes) - count($this->commitedRes);
        if ($diff >= $this->autoCommit && $this->autoCommit > 0) {
            echo self::$debug ? " + autocommit" : '';
            $this->fedora->commit();
            $this->commitedRes = $this->indexedRes;
            $this->fedora->begin();
            return true;
        }
        return false;
    }
private function handleAutoCommit ( ) : bool { $ diff = count ( $ this -> indexedRes ) - count ( $ this -> commitedRes ) ; if ( $ diff >= $ this -> autoCommit && $ this -> autoCommit > 0 ) { echo self :: $ debug ? " + autocommit" : '' ; $ this -> fedora -> commit ( ) ; $ this -> commitedRes = $ this -> indexedRes ; $ this -> fedora -> begin ( ) ; return true ; } return false ; }
Performs autocommit if needed
@return bool if autocommit was performed
Performs autocommit if needed