tag:blogger.com,1999:blog-8385202061412147011.post722396441977109962..comments2023-04-28T20:06:45.302+05:30Comments on The Gr8marathe's Blog: Salesforce: Simple Roll-Up Summary Calculation Using Apex TriggerAnonymoushttp://www.blogger.com/profile/17182240506692668269noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8385202061412147011.post-17721973379013319832012-03-25T05:07:11.656+05:302012-03-25T05:07:11.656+05:30Please don't put up non-production ready code....Please don't put up non-production ready code. Beginners will think that this is allowed. They don't know better because you don't state explicitly that DML statements must not be in loops.<br />NEVER do a DML in a loop without some serious workarounds... in other words, NEVER do it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8385202061412147011.post-62263927120063133052012-02-10T21:31:36.786+05:302012-02-10T21:31:36.786+05:30Yes. I'm aware... This trigger can be modified...Yes. I'm aware... This trigger can be modified to perform more complex operations.. This is just a start for beginners..Anonymoushttps://www.blogger.com/profile/17182240506692668269noreply@blogger.comtag:blogger.com,1999:blog-8385202061412147011.post-42559710079461577892012-02-10T15:52:42.753+05:302012-02-10T15:52:42.753+05:30Your trigger will break if there are multiple reco...Your trigger will break if there are multiple records are inserted/updated/deleted. That's because of the SOQL is written inside for loop. You can refer other optimized triggers written by many in force.com discussion boards.Anonymousnoreply@blogger.com