CMFActivity: limit insertion by size in bytes instead of number of rows
This fixes the issue that a transaction with many big messages failed to commit. By dynamically find the maximum allowed size of a query, it also speeds up insertion by minimizing the number of queries.
Showing