Commit d0abf3e
perf(tables): tenant-bound upsert conflict lookup
Same unestimatable data->>key predicate as the unique checks; an
insert-path upsert has no existing match so the lookup can't exit early
and seq-scans the whole shared relation. The upsert already runs in a
transaction — set the planner flag on it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2f44ac0 commit d0abf3e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2511 | 2511 | | |
2512 | 2512 | | |
2513 | 2513 | | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
2514 | 2518 | | |
2515 | 2519 | | |
2516 | 2520 | | |
| |||
0 commit comments