![]() |
Problem (82.09% PHP - 17.91% MySQL)
Page generated in 1.46836209 seconds (82.09% PHP - 17.91% MySQL) with 16 queries.
Shouldn't the MySQL be working more than the PHP? It used to be the other way round, but yesterday I was removing hack which were installed to reduce the amount of qeries with the server is putting towards MySQL. Any Help you be appreciated |
No, PHP loading is MUCH better (and friendlier) than SQL.. :)
|
Quote:
|
Well i had loads yesterday. What i've done today is installed a fresh copy and just copied the datatbase over. I now only have 2 hacks installed. Ucash/Ushop and vBookie. That is it. The stats are now:
Page generated in 0.33000803 seconds (47.75% PHP - 52.25% MySQL) with 13 queries DEBUG Mode OFF | GZIP ON (level 1) | 1.06 : 0.95 : 0.79 | NO Uncached Templates Is that good for the front page. /index.php??? What i don't understand how vbulletin.org has "Page generated in 0.15398 seconds with 15 queries" Thats on showthread. But my showthread is: Page generated in 0.38000894 seconds (45.68% PHP - 54.32% MySQL) with 14 queries DEBUG Mode OFF | GZIP ON (level 1) | 0.66 : 0.81 : 0.75 | NO Uncached Templates Less quieries but longer to load the page. Also is that tru that its better to have a higher php% than a hight MySQL %? Thanks |
Quote:
|
It can be tricky, because php can eat up just as much as mySQL if you let it. Ussally you associate more load with alot of mySQL queries because of the disk access going on. But php can cause just as much load checking and changing data for output.
Are you in a shared hosting enviroment? Other sites on the box can cause extra load server wide, remember you are all sharing the same resources. What I would do is enter de-bug mode, and see if a mySQL query is taking awhile to run, if not you know you have a problem with some slow php code. BTW you have defentaly increased the number of queries on index.php, I belive the stock installation runs 7 without vBcron, and 8 when vBcron is invoked. This is vB3 we are talking about right? :) |
Quote:
PHP Code:
PHP Code:
MySQL is not faster than PHP nor vice versa. It depends on how you code the solution. |
Quote:
|
Quote:
Something like that, of course - MySQL would be the sensible option. |
All times are GMT. The time now is 05:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|