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

Governor Limits
If you write a apex class and call it in the trigger, will you be able to avoid the governor limits?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
If you need to do a lot of processing in a trigger, you can call an @future method. This will run as a separate transaction, asynchronously, at some time in the future (indeterminate, but usually not more than 5 seconds or so). Asynchronous Apex has some higher limits; notably, they get 60 seconds of CPU time instead of just 10. Batch Apex lets you work with up to 50 million records (2000 at a time). @readonly methods can access 1 million records, but they can't do any DML.
Which of the governor limits are you trying to get around?
Glyn Anderson
Sr Developer | System Analyst | ClosedWon | closedwon.com
Certified Developer | Certified Advanced Administrator
Blog: GlynATheApexGuy@blogspot.com
Twitter: @GlynAtClosedWon
All Answers
If you need to do a lot of processing in a trigger, you can call an @future method. This will run as a separate transaction, asynchronously, at some time in the future (indeterminate, but usually not more than 5 seconds or so). Asynchronous Apex has some higher limits; notably, they get 60 seconds of CPU time instead of just 10. Batch Apex lets you work with up to 50 million records (2000 at a time). @readonly methods can access 1 million records, but they can't do any DML.
Which of the governor limits are you trying to get around?
Glyn Anderson
Sr Developer | System Analyst | ClosedWon | closedwon.com
Certified Developer | Certified Advanced Administrator
Blog: GlynATheApexGuy@blogspot.com
Twitter: @GlynAtClosedWon