Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework is not able to handle bulk dataset #26

Open
vinodpalne opened this issue Nov 24, 2019 · 7 comments
Open

Framework is not able to handle bulk dataset #26

vinodpalne opened this issue Nov 24, 2019 · 7 comments

Comments

@vinodpalne
Copy link

vinodpalne commented Nov 24, 2019

Hi @kevinohara80
I am using the Trigger framework but stuck at a point where I have to deal with bulk data. The framework is consuming a lot of CPU time. The trigger doesn't have any complex logic it simply needs to set field value in before event for approx 4k records.

Can you please help me to get out of this exception.

Any help would be appreciated.

Thank You.

@codefriar
Copy link
Collaborator

Can you please post your full trigger, and a log of it failing with 4K records?

I’ve used this with large data volume orgs and data imports of 18k records without error.

@vinodpalne
Copy link
Author

vinodpalne commented Nov 24, 2019

@kevinohara80
Please find the attached log file and trigger.

apex-07L4J000002ZxX3UAK.log

AccountTriggerHandler.txt

@davehelgerson
Copy link

@vinodpalne Try this same experiment with a new custom object instead of Account. There isn't much happening in the log between the ~600ms jump in CPU. This makes me think the CPU is being used by SF processes (possibly building/checking indexes for a unique field), and not the framework.

@jayantsandeibm
Copy link

jayantsandeibm commented Nov 25, 2019

@davehelgerson @kevinohara80
Hi Friends, Attached are logs with framework & without this trigger framework.
hope this clarifies issue.
FYI,, I tested this for 2000 Account UPDATE operation on anonymous apex execute.
The beforeupdate and afterupdate() trigger methods are blank/empty.
without_FW.log
with_FW.log

@jayantsande25
Copy link

attaching apex execution log for the same
Screenshot 2019-11-25 at 13 16 31

@kevinohara80
Copy link
Owner

Can you post your Trigger body?

@jayantsande25
Copy link

jayantsande25 commented Dec 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants