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

后端 未结 10 1375
春和景丽
春和景丽 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:52

    If you need the queries, you should just use them.

    What I always try to do, is to have them executed all at once at the same place, so that there is no need for different parts (if they're separated...) of the page to make database connections. I figure it´s more efficient to store everything in variables than have every part of a page connect to the database.

提交回复
热议问题