关于单表插入性能的问题

我刚才发现,即使使用了preparedStmt、batchUpdate和rewriteBatchedStatements (size大概2000-10000)这个插入sql在执行时还是需要大量时间来parse和compile,甚至占用了总耗时的大半(第一行2000一组,第二行10000一组)