DEV Community

Discussion on: Why ORMs Aren't Always a Great Idea

Collapse
 
thexdev profile image
M. Akbar Nugroho

Just query your DB using ORM then cache it. Create a service and use raw query if you deal with complex problem. Write the documentation why yo do this so next developer also understand.

ORM just a layer of abstraction so you can access your data in OOP way. It just a tool and use it in right situation 🤷‍♂️.

Some comments have been hidden by the post's author - find out more