Skip to content

Commit 0937ded

Browse files
committed
Update to wording
1 parent 8d0aaa5 commit 0937ded

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/content/docs/d1/observability/debug-d1.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ The following table lists specific instances of `D1_ERROR`.
5858
While some D1 errors can be resolved by retrying the operation, retrying is only safe if your query is idempotent (produces the same result when executed multiple times).
5959

6060
Before retrying any failed operation:
61-
- Verify your query is idempotent
62-
- Avoid retrying non-idempotent operations
63-
- Consider implementing application-level safeguards
61+
- Verify your query is idempotent (for example, read-only operations, or queries such as `CREATE TABLE IF NOT EXISTS`).
62+
- Consider implementing application-level checks to identify if the operation can be retried, and retrying only when it is safe and necessary.
6463

6564
When in doubt, do not retry automatically. Instead, investigate the root cause and ensure your application logic can handle potential duplicates safely.
6665
:::

0 commit comments

Comments
 (0)