Menu

Apex custom rule for DML should be done in bulk

2020-10-09
2020-10-29
  • Puneet Jain

    Puneet Jain - 2020-10-09

    We should always bulkify the code which collects all the records to be updated/inserted/deleted and it does once DML for all qualified records. We shouln't be making multiple same DMLs on the same object in the same contexts. Please check for existing DMLs if it is existing and can be reused.

     
  • Puneet Jain

    Puneet Jain - 2020-10-29

    Hi Andreas,
    I have raised an issue.below is the link available.Please check and let me know the solution
    https://github.com/pmd/pmd/issues/2884

    Thanks!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.