{"id":1503,"date":"2020-06-02T06:15:03","date_gmt":"2020-06-02T06:15:03","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/performance\/commit-entities-in-the-same-order-in-different-microflows-to-prevent-deadlock\/"},"modified":"2020-08-31T15:11:48","modified_gmt":"2020-08-31T15:11:48","slug":"projectdeadlock","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/projectdeadlock","title":{"rendered":"Commit entities in the same order in different microflows to prevent deadlock"},"content":{"rendered":"\n<p> Introduced in version 1.11 (29 June 2020) <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This rule checks the entire project whether all entity database updates happen in the same order. Since the goal is deadlock detection, the create action is excluded.<\/p>\n\n\n\n<p>This rule cannot know if the same row is committed, only if the same entities are committed in different order, so it is an indication of a potential deadlock.<\/p>\n","protected":false},"featured_media":0,"parent":95,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1503","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1503"}],"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=1503"}],"version-history":[{"count":2,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1503\/revisions"}],"predecessor-version":[{"id":1506,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1503\/revisions\/1506"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/95"}],"next":[{"title":"Commits should take place outside of a loop","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/commitinloop","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/225"}],"prev":[{"title":"Calculated attributes should only have fast actions","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/entitycalculatedattributeheavyaction","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1320"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1503"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}