You need to sign in to do that
Don't have an account?

Batch processing bulk imported records
I need to batch process imported accounts and I can't do it through a trigger without hitting Governor limits so I'm trying to work out a way to push it into a batch job from the trigger, but I'm worried about the 5 batch job limit...
I believe the Data Loader loads data in batches of 200, meaning that if the customer imports 2,000 accounts, my trigger will be called 10 times with a Trigger.size of 200 each time. If I create a batch job every time the trigger is called, I'll have 10 batch jobs - creating an error.
Is there a way around that, or am I misunderstanding the process?