Processing large batch - best practice
Once a month Quickbooks generates a SQL table of approximately 1000 transactions to process on Stripe. I'm looking for suggestions on how to best process this many transactions instead of cfloop. My concerns with cfloop are what if it crashes where do I restart and timeouts. Once they're processed the record is deleted. Here are my thoughts:
ProcessPayment CFM page:
Select Top1 from ToBeProcessed
<cfif if ToBeProcessed.recordcount GT 1>
<!--- Process Stripe Transaction --->
Delete from ToBeProcessed transaction x
<cflocation processpayment.cfm>
</cfif>
This would loop over the table one transaction at a time, process it, delete it, then start again.
Thoughts? Is there a better way?
Gary
