Commit 46ba436
committed
Introduce (optional, default) support for
Currently, in order to delete existing relationships, callers must trigger `UpdateTopic`'s `@DeleteRelationships` flag—which will delete all relationships for that topic—and _then_ call `UpdateRelationship` with the final relationships set. This is wasteful, as often times the relationships will have overlap, or even be identical.
The previous update (e725077) allows doing inserts without recreating existing relationships. This update allows unmatched records to be deleted, thus providing true synchronization with `@RelatedTopics`, without needing to first delete the relationships, nor needing to recreate any relationships.
Optionally, this can be disabled by setting the `@DeletedUnmatched` parameter to `0`, thus only appending any new relationships—though, by default, it is enabled (`1`).DeleteUnmatched
1 parent e725077 commit 46ba436
1 file changed
Lines changed: 15 additions & 1 deletion
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
0 commit comments