Measure application performance by aggregating SQL audit records
问题 Suppose there is a simple audit table with two columns (in production there are more columns): ID | Date When the request is processed, we add a record into this table. Requests are processed in batches, there can be any number of items in a batch. For each item, we will add a record. There will be at least 2 second delay between batches (the number is configurable). The performance is measured by how fast we can process requests, per unit of time, for example, per second. Consider this