src/Webtrees/Module/Sosa/Model/SosaCalculator.php
protected function flushTmpSosaTable($force = false) {
        if( count($this->tmp_sosa_table)> 0 && 
            ($force ||  count($this->tmp_sosa_table) >= self::TMP_SOSA_TABLE_LIMIT)){            
                $this->sosa_provider->insertOrUpdate($this->tmp_sosa_table);
                $this->tmp_sosa_table = array();
        }
    }
protected function flushTmpSosaTable($force = false) {
        if( count($this->tmp_sosa_table)> 0 && 
            ($force ||  count($this->tmp_sosa_table) >= self::TMP_SOSA_TABLE_LIMIT)){            
                $this->sosa_provider->insertOrUpdate($this->tmp_sosa_table);
                $this->tmp_sosa_table = array();
        }
    }
protected function flushTmpSosaTable ( $ force = false ) { if ( count ( $ this -> tmp_sosa_table ) > 0 && ( $ force || count ( $ this -> tmp_sosa_table ) >= self :: TMP_SOSA_TABLE_LIMIT ) ) { $ this -> sosa_provider -> insertOrUpdate ( $ this -> tmp_sosa_table ) ; $ this -> tmp_sosa_table = array ( ) ; } }
Write sosas in the table, if the number of items is superior to the limit, or if forced.

@param bool $force Should the flush be forced
Write sosas in the table if the number of items is superior to the limit or if forced .