You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/d1/observability/debug-d1.mdx
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,8 @@ The following table lists specific instances of `D1_ERROR`.
58
58
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).
- 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.
64
63
65
64
When in doubt, do not retry automatically. Instead, investigate the root cause and ensure your application logic can handle potential duplicates safely.
0 commit comments