为codeIgniter的ActiveRecord的资源密集型? [英] Is CodeIgniter's ActiveRecord resource intensive?
问题描述
我编码一个与服务器资源考虑应用程序,所以我不想用太多,这样,未来这一应用规模。我不介意写我自己的查询。所以,是的ActiveRecord资源密集型的应用?还是它不会有所作为?
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?
谢谢!
推荐答案
CI的ActiveRecord的是基本不是 ActiveRecord的,但查询生成器。它可以让你形成一个面向对象的方式简单的查询。像任何抽象,从对象状态组装成一个SQL查询比硬编码慢,但我怀疑对性能的影响可以忽略不计。
CI's ActiveRecord is basically not an ActiveRecord, but a Query Builder. It allows you to form simple queries in an object oriented manner. Like with any abstraction, assembling from object state into a SQL query is slower than hardcoding it, but I suspect the performance impact to be negligible.
这篇关于为codeIgniter的ActiveRecord的资源密集型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!