Compiles batch insert strings and runs the queries, validating each row prior.

@param array   $set       An associative array of insert values
@param boolean $escape    Whether to escape values and identifiers

@param integer $batchSize
@param boolean $testing

@return integer|boolean Number of rows inserted or FALSE on failure