{"id":1149,"date":"2020-02-03T10:23:34","date_gmt":"2020-02-03T10:23:34","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/performance\/prevent-using-loops-in-loops\/"},"modified":"2020-07-08T14:35:30","modified_gmt":"2020-07-08T14:35:30","slug":"loopinloop","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/loopinloop","title":{"rendered":"Loops should not have loops inside"},"content":{"rendered":"\n<p>Introduced in version 1.4 (3 February 2020)<\/p>\n\n\n\n<p> A loop can potentially be executed hundreds or thousands of times. Therefore it is preferable to avoid doing loops in a loop. <\/p>\n","protected":false},"featured_media":0,"parent":95,"menu_order":26,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1149","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1149"}],"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=1149"}],"version-history":[{"count":2,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1149\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1149\/revisions\/1153"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/95"}],"next":[{"title":"Persistent entities should have indices","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/performanceminamountindices","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1485"}],"prev":[{"title":"Retrieves over the same association should be grouped together","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/xpathassociationgrouped","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1232"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1149"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}