---
title: "Discussion on \"DML Partial Success in Apex: Database.SaveResult and Savepoints\" | Hashnode"
description: "Discussion on \"DML Partial Success in Apex: Database.SaveResult and Savepoints\". A bulk update on 5,000 records. Twelve fail validation. Should the other 4,988 commit, or should the whole batch roll back? The answer depends on the business case, and Apex offers three patterns to control it."
url: "https://hashnode.com/posts/dml-partial-success-in-apex-databasesaveresult-and-savepoints/6a53c3bf7370acb71858031c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DML Partial Success in Apex: Database.SaveResult and Savepoints](https://sapotacorpvn.hashnode.dev/dml-partial-success-in-apex-databasesaveresult-and-savepoints?utm_source=hashnode&utm_medium=feed)

A bulk update on 5,000 records. Twelve fail validation. Should the other 4,988 commit, or should the whole batch roll back? The answer depends on the business case, and Apex offers three patterns to control it.

Jul 12 · 7 min read · sapotacorpvn.hashnode.dev  
Read the article

-   [#salesforce](https://hashnode.com/tag/salesforce)
-   [#apex](https://hashnode.com/tag/apex)
-   [#dml](https://hashnode.com/tag/dml)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#apex-development](https://hashnode.com/tag/apex-development)

## Written by

[SapotaCorp](https://hashnode.com/@sapotacorpvn)

@sapotacorpvn · Hanoi, Vietnam

  
[View profile](https://hashnode.com/@sapotacorpvn)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
