Welcome Guest, Not a member yet? Register   Sign In
Is ActiveRecord resource intensive?
#1

[eluser]iamdadude[/eluser]
I'm coding an application with server resources in mind, so I don't want to use too much so that this application scales in the future. I don't mind writing my own queries. So, is ActiveRecord resource intensive for my application? Or does it not make a difference?

Thanks!
#2

[eluser]bretticus[/eluser]
Active Record methods are mostly just setting properties, etc. It's the get() call where the "action" happens. Simply put, it's a database abstraction class. I really don't think it's too heavy. Of course, I've never profiled it against, say, PDO. I'd recommend that doing a simple test would suffice. I think I can guarantee that your bottle neck will be tcp transaction with the database. In my opinion, the benefits outweigh the milliseconds you may save by not using it.




Theme © iAndrew 2016 - Forum software by © MyBB