Answers

Question and Answer:

  Home  Ruby on Rails Developer

⟩ Tell us what are benefits of using Active Record as opposed to raw SQL queries?

Here are the benefits:

☛ it’s really easy to go wrong during writing SQL queries

☛ each different type of database usually has a slightly different flavour of SQL, so it could be really painful if, during work on a big app, you decide to switch to a different database

☛ using Active Record reduces code significantly and makes it easier to read

☛ using Active Record makes common operations simpler and easier than writing your own SQL statements

 174 views

More Questions for you: