{"push_id":605741545,"size":1,"distinct_size":1,"ref":"refs/heads/eligible-rules-optimisation","head":"c6cd1f1b77d6dd8d0073d557b413ffc6188ec688","before":"3576cba1ff9283155dfe3caab9c7798ab86090fd","commits":[{"sha":"c6cd1f1b77d6dd8d0073d557b413ffc6188ec688","author":{"email":"e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com","name":"Sam Phippen"},"message":"Optimise Promotion#eligible_rules\n\nThe problem here is that this method was running the same query to load\npromotion rules multiple times. Whilst each individual query is fast,\nrunning this query over and over again caused many round trips to the\ndatabase in our performance profiling. By mapping eligibility once and\nstoring it in a local variable we save a lot of that effort.","distinct":true,"url":"https://api.github.com/repos/Lostmyname/spree/commits/c6cd1f1b77d6dd8d0073d557b413ffc6188ec688"}]}