{"ref":"content:devtoberfest-2026-cds-associations-and-joins","page":"/content/devtoberfest-2026-cds-associations-and-joins","json":"/content/devtoberfest-2026-cds-associations-and-joins.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"devtoberfest-2026-cds-associations-and-joins","title":"CDS Associations & Joins","content_type":"talk","url":"https://www.youtube.com/watch?v=94XawWCVfaQ","published":"2026-10-12","published_on":"source:youtube","authors":["actor:sap"],"summary":"A Devtoberfest 2026 session from SAP's performance and scalability team on what an [ABAP CDS](artifact:abap-cds) association becomes on SAP HANA, taken as an excerpt from their internal performance training. The CDS edge rests on the three ways an association is used: a path expression and an explicit join both put a left outer join into the generated view, while exposing the association leaves the view without one and adds the join only for a query that asks for its fields, which the session calls join on demand. The [data modelling](capability:data-modelling) edge is the advice that follows and the demo under it — cardinality written as precisely as the data allows, because the optimiser trusts it, shown with a view whose missing cardinality let SELECT COUNT(*) prune the join and return 18 rows where selecting the columns returned 56, plus the left-hand, right-hand and left-outer-to-inner rewrites that correct cardinalities make possible.","short":"What an ABAP CDS association becomes on SAP HANA","explains":["artifact:abap-cds",{"ref":"capability:data-modelling","applies_to":{"ecosystems":["abap"]}}],"sources":[{"url":"https://www.youtube.com/watch?v=94XawWCVfaQ","title":"CDS Associations & Joins","checked":"2026-10-19","quote":"Associations in general they start with a with the keyword of the association and then following by a definition of the particular entity you want to associate."},{"url":"https://www.youtube.com/watch?v=94XawWCVfaQ","title":"CDS Associations & Joins","checked":"2026-10-19","quote":"by default associations are always um implemented on SAP HANA as a left outer join"},{"url":"https://www.youtube.com/watch?v=94XawWCVfaQ","title":"CDS Associations & Joins","checked":"2026-10-19","quote":"Which this concept is called join on demand. So, the join is added only in case there are fields requested from this association."},{"url":"https://www.youtube.com/watch?v=94XawWCVfaQ","title":"CDS Associations & Joins","checked":"2026-10-19","quote":"always specify the cardinality for drawing partners and for association targets explicitly and precise as possible"}],"drafted_with_ai":true,"history":[{"date":"2026-10-31","field":"authors","from":"SAP Developers","to":"actor:sap","reason":"The free-text author was the SAP Developers YouTube channel, which is SAP (ADR-0115). Only the credit changes."}],"provenance":{"discovered_via":[{"source":"source:curator"}],"first_seen":"2026-10-31"}},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 1 month ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-10-12"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":null,"edges":{"authors":[{"ref":"actor:sap","name":"SAP","json":"/actors/sap.json"}]}}