public function update_stats() {
        $temptables = $this->get_temptables();
        foreach ($temptables as $temptablename) {
            $this->mdb->execute("ANALYZE {".$temptablename."}");
        }
    }
public function update_stats() {
        $temptables = $this->get_temptables();
        foreach ($temptables as $temptablename) {
            $this->mdb->execute("ANALYZE {".$temptablename."}");
        }
    }
public function update_stats ( ) { $ temptables = $ this -> get_temptables ( ) ; foreach ( $ temptables as $ temptablename ) { $ this -> mdb -> execute ( "ANALYZE {" . $ temptablename . "}" ) ; } }
Analyze the data in temporary tables to force statistics collection after bulk data loads.
PostgreSQL does not natively support automatic temporary table stats collection, so we do it.

@return void
Analyze the data in temporary tables to force statistics collection after bulk data loads . PostgreSQL does not natively support automatic temporary table stats collection so we do it .