The Troublesome Active Record Pattern

How inappropriate data access patterns massively slow down programs and how the same problems arise with RESTful APIs.