开发者

ORM for PHP - performance problem

开发者 https://www.devze.com 2022-12-23 11:56 出处:网络
What do you think, should I use ORM like Propel or Doctrine? For a new PHP Project. Are there any performa开发者_运维问答nce issues?When you start a new project you can get Objects in and out of the

What do you think, should I use ORM like Propel or Doctrine? For a new PHP Project. Are there any performa开发者_运维问答nce issues?


When you start a new project you can get Objects in and out of the database fast, without worrying how you do it. You can also switch DBMS very fast from SQLite on your local dev machine, to MySQL on your testing or staging servers. When the performance part kicks in, your application has already matured a bit, models are somewhat fixed and programlogic is running. Extending the models to use SQL instead of the ORM is more convenient then, because the structure of the project isn't changing (so fast) anymore.

I suggest doctrine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号