Here has been discussion in another comments about overusing ARs for trying to achieve too complicated things that&#x27;ll lead to DB performance problems. As stated elsewhere here, AR is good for CRUD operations but after that you should use Query Builder or plain SQL to achieve the more complicated cases.