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

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

    Wordpress, for instance, can pull up to 30 queries a page. There are several things you can use to stop MySQL pull down - one of them being memchache - but right now and, as you say, if it will be straightforward just make sure all data you pull is properly indexed in MySQL and don't worry much about the number of queries.

    If you're using a Framework (CodeIgniter for example) you can generally pull data for the page creation times and check whats pulling your site down.

提交回复
热议问题