Performance improvement when adding lines to a sales invoice

The performance has been improved when adding sales invoice lines to a sales invoice.