{"id":1236,"date":"2020-02-17T13:50:39","date_gmt":"2020-02-17T13:50:39","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/performance\/associationownerboth\/"},"modified":"2020-07-08T14:35:30","modified_gmt":"2020-07-08T14:35:30","slug":"associationownerboth","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/associationownerboth","title":{"rendered":"Many-to-many associations should have owner &#8220;Default&#8221;"},"content":{"rendered":"\n<p>Using owner &#8220;both&#8221; does not affect the ability to navigate the association from both ends which is always possible. However, it does introduce overhead.<\/p>\n\n\n\n<p>Therefore, it is recommended that many-to-many associations are owned by the <em>Default <\/em>entity, unless there is a strong business reason for needing to add the association from either end in your Mendix app.<\/p>\n\n\n\n<p><strong>Non-compliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"551\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-9.png\" alt=\"\" class=\"wp-image-1240\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-9.png 617w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-9-480x429.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 617px, 100vw\" \/><\/figure>\n\n\n\n<p><strong>Compliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"552\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-8.png\" alt=\"\" class=\"wp-image-1239\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-8.png 619w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/02\/image-8-480x428.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 619px, 100vw\" \/><\/figure>\n","protected":false},"featured_media":0,"parent":95,"menu_order":16,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1236","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1236"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1236"}],"version-history":[{"count":3,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1236\/revisions"}],"predecessor-version":[{"id":1241,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1236\/revisions\/1241"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/95"}],"next":[{"title":"Microflow retrieve from database and aggregate should be adjacent","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/retrieveaggregateadjacent","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/757"}],"prev":[{"title":"Entity should have a maximum of N reference set associations","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/referencesetamount","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/755"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1236"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}