diff --git a/src/plugins/accounting_storage/mysql/mysql_rollup.c b/src/plugins/accounting_storage/mysql/mysql_rollup.c index 8f79e43d81dfcf9380408fc109210d49cbe8328a..ba2534a9688eedf1f896cf14c931254bef283fe7 100644 --- a/src/plugins/accounting_storage/mysql/mysql_rollup.c +++ b/src/plugins/accounting_storage/mysql/mysql_rollup.c @@ -835,6 +835,10 @@ extern int mysql_hourly_rollup(mysql_conn_t *mysql_conn, } } + /* Spacing out the inserts here instead of doing them + all at once in the end proves to be faster. Just FYI + so we don't go testing again and again. + */ if(query) { xstrfmtcat(query, " on duplicate key update "