Jump to content

[solved] Front/Back Office very slow, time to first byte


Recommended Posts

hello,

my back office is very slow , it run in 4-5 second and sometimes in 10 second.

i have ps 1.5.6.1 i have permission 755 in the every folder and 644 in every file

this is page product of my back office ( img 1 - 2 - 3 )

if i enable memcache the site run in 20 second

please help me , do you have any suggestions??

post-721668-0-22530900-1434700674_thumb.jpg

post-721668-0-99241200-1434700683_thumb.jpg

post-721668-0-04008400-1434700686_thumb.jpg

Edited by giuliopowa (see edit history)
Link to comment
Share on other sites

I do not know why :) 

i reply you message:

Contact your server administrator and ask why the UPDATE queries take so long. It isn't normal. It seems something is wrong with the database server or maybe the ps_configuration table needs optimization.

 

I did the same test locally and both UPDATE queries in the ps_configuration table took 1ms. )

 to my hosting and he reply this:

We have performed a MySQL OPTIMIZE_TABLE operation on ps_configuration, and the status is reported as OK.

Link to comment
Share on other sites

Your database has a serious problem. Really, ask your administrator or move away. I have seen that many times. Some administrators just don't care or don't know what to do.

 

See the first query. A simple SELECT which returns 1 record and takes almost 12 s. Incredible!

Link to comment
Share on other sites

but if i enable you module this is the debug:
 

Stopwatch (with SQL_NO_CACHE) (total = 89)

8219.358 ms UPDATE `ps_configuration` SET `value` = '0',`date_upd` = '2015-06-22 16:46:09' WHERE `name` = 'M4PDF_FILE_ORDERRETURN_FORMAT' AND (id_shop_group IS NULL OR id_shop_group = 0) AND (id_shop IS NULL OR id_shop = 0) LIMIT 1
in /home/etkslo/public_html/classes/Configuration.php:329

4869.306 ms UPDATE `ps_configuration` SET `value` = '1',`date_upd` = '2015-06-22 16:46:02' WHERE `name` = 'M4PDF_LIBRARY' AND (id_shop_group IS NULL OR id_shop_group = 0) AND (id_shop IS NULL OR id_shop = 0) LIMIT 1
in /home/etkslo/public_html/classes/Configuration.php:329

4077.043 ms SELECT SQL_NO_CACHE t.`class_name`, t.`module` FROM `ps_tab` t WHERE t.`module` IS NOT NULL AND t.`module` != ""
in /home/etkslo/public_html/classes/Tab.php:222
101 rows browsed

2210.911 ms SELECT SQL_NO_CACHE COUNT(*) FROM `ps_hook_module` hm LEFT JOIN `ps_hook` h ON (h.`id_hook` = hm.`id_hook`) WHERE h.`name` = 'actionPDFInvoiceRender' AND hm.`id_module` = 214 LIMIT 1
in /home/etkslo/public_html/classes/module/Module.php:1651
3 rows browsed

261.899 ms SELECT SQL_NO_CACHE c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop FROM `ps_configuration` c LEFT JOIN `ps_configuration_lang` cl ON (c.id_configuration = cl.id_configuration)
in /home/etkslo/public_html/classes/Configuration.php:116
944 rows browsed



I do not understand anything anymore

Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...