How many MySQL queries should I limit myself to on a page? PHP / MySQL

后端 未结 10 1374
春和景丽
春和景丽 2020-12-10 13:16

Okay, so I\'m sure plenty of you have built crazy database intensive pages...

I am building a page that I\'d like to pull all sorts of unrelated database informati

10条回答
  •  臣服心动
    2020-12-10 13:46

    As many as needed, but not more.

    Really: don't worry about optimization (right now). Build it first, measure performance second, and IFF there is a performance problem somewhere, then start with optimization.

    Otherwise, you risk spending a lot of time on optimizing something that doesn't need optimization.

提交回复
热议问题