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
{{ message }}
Repository navigation
Commit 319c657
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: examples/trace-chain/README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,8 @@ and the `runtime-examples` Maven profile.
70
70
| Facet inside a loaded relation | A PaymentAttempt loads Payment and its CustomerOrder facet; all four physical queries keep the original root, including the already-loaded `payment` ancestor |
71
71
| Returned nested Facet metadata |`GeneratedFacetTraceExampleTest` checks that the returned payments Facet retains its orders Facet; executing nested SQL alone does not prove result carriage |
72
72
| Full nested membership counts | A one-row page over three attempts / two payments returns both payment and order counts of 2; matching/all Facets and logging off/on execute seven real SELECTs, including materialized predicate lookups, on one originating collector |
73
+
| Loaded forward Facet results | Two loaded payments each retain their own orders Facet through runtime-owned `getQueryFacet("orders")`; seven physical SELECTs keep the complete root/ancestor path in both logging modes |
74
+
| Loaded empty and nonpersistent metadata | Eight matching/all × existing/absent target × logging combinations retain requested empty Facets and stable FK identity; subsequent audited payment save emits exactly one business mutation |
73
75
74
76
The first run begins with CustomerOrder and Payment both numbered 100, items
75
77
201/202, attempt 401 and shipment 501. IDs come from `IdSpaceIdGenerator`, not
@@ -138,7 +140,18 @@ verified relation edge. Matching Facet targets are restricted by the counted
138
140
FK identities, never by applying source-table predicates to the target table.
139
141
Facet materialization preserves nested collection metadata without sharing its
140
142
mutable map. The all-examples gate includes both generated test classes
141
-
(19 JUnit methods), twice against the same retained SQLite database.
143
+
(21 JUnit methods), twice against the same retained SQLite database.
144
+
Facets loaded with a forward entity live in a runtime-owned `getQueryFacets()`
145
+
sidecar, not a KSML field, dynamic field, JSON property or mutation-ledger key.
146
+
`getQueryFacet(name) == null` means that Facet was not requested; a non-null
147
+
empty `SmartList` is a loaded empty result. The map is a copied, unmodifiable
148
+
snapshot. Loading a reverse collection preserves that collection's existing
149
+
`SmartList.getFacet(name)` metadata, independently for every parent, including
150
+
parents without children. Facet scopes currently use per-referenced-entity or
151
+
per-parent reads for correctness; there is no batched-Facet performance claim.
152
+
Ordinary relation loads without Facets retain their existing bulk/window/probe
153
+
policy. For a bounded reverse collection with Facets, selected-plan telemetry
154
+
reports `facet-scope`, not a fabricated window/probe selection.
0 commit comments