I have a DocGen package for a monthly business process -- creating membership renewal letters -- that we run from a report and output to DocGen Queue. Our volume is about 2,000-3,000 records each month. When we first ran this package and process in production, we quickly and unexpectedly hit our limit of 25,000 API calls within 24 hours. It turns out that running the package used roughly 12 API calls per record, and then another 3 per record when we went to merge the resulting PDFs into batched files for printing.
We got Salesforce to temporarily lift our limit, but I'd like to see if there is a way to understand and potentially reduce the number of API calls in my package so that we don't end up having to a) split up our process in order to stay under the limit, or b) pay Salesforce for a higher API call limit.