|
25 | 25 | * through its own moment rather than the walled replay's. |
26 | 26 | * |
27 | 27 | * The held list lives in the process, and the last leg restarts between the |
28 | | - * seed and the person's sign-up to show that a restart loses nothing: the |
29 | | - * durable holder is the seed declaration itself. An un-walled boot runs its |
30 | | - * inline seed on every start; the replay meets the same unresolved person on |
31 | | - * the row it landed on before, and holds it again. No second record of the |
32 | | - * held references is kept. |
| 28 | + * seed and the person's sign-up. For a keyed dataset (`mode` `ignore`, `upsert` |
| 29 | + * or `update`) a restart loses nothing: the durable holder is the seed |
| 30 | + * declaration itself. An un-walled boot runs its inline seed on every start; |
| 31 | + * the replay matches the row it landed on before by its key, meets the same |
| 32 | + * unresolved person there, and holds it again. No second record of the held |
| 33 | + * references is kept. An `insert` or `replace` dataset matches no row on |
| 34 | + * replay, so its first row is not held again; that leg is not pinned here. |
33 | 35 | * |
34 | 36 | * ## What is real |
35 | 37 | * |
@@ -305,11 +307,12 @@ describe('un-walled: a held seed person reference fills only the seed’s own ro |
305 | 307 | }); |
306 | 308 |
|
307 | 309 | /** |
308 | | - * A restart between the un-walled seed and the person's sign-up loses nothing. |
309 | | - * The first process holds the reference in memory and stops before the person |
310 | | - * exists. The second process boots cold over the same database file; its own |
311 | | - * inline seed replays, meets the same NULL on the same row, and holds it again, |
312 | | - * so the person's sign-up in the second process fills the row. |
| 310 | + * A restart between the un-walled seed and the person's sign-up loses nothing |
| 311 | + * for a keyed dataset (`mode: 'upsert'` here). The first process holds the |
| 312 | + * reference in memory and stops before the person exists. The second process |
| 313 | + * boots cold over the same database file; its own inline seed replays, matches |
| 314 | + * the same row by its key, meets the same NULL there, and holds it again, so |
| 315 | + * the person's sign-up in the second process fills the row. |
313 | 316 | */ |
314 | 317 | describe('un-walled: a restart between the seed and the person’s sign-up still fills the seed’s person columns', () => { |
315 | 318 | const env = legEnv([ |
|
0 commit comments