MySQL Debugger Results | ||
Count | SQL query | Time to execute |
1 | SELECT code FROM shop_languages WHERE id = ? | 0.0064 |
2 | SELECT id, word, lang_1 as text FROM shop_language_words | 0.0084 |
3 | SELECT * FROM currency | 0.0096 |
4 | SELECT * FROM shop_redirects WHERE old_url = ? | 0.0109 |
5 | SELECT id FROM fm_brands WHERE seo_url IN('cm','sany','ntc','ringer','m3srl','c4','tubes','binmak','almac','komodo','liftxtr','bunker','hako') | 0.0088 |
6 | SELECT t.id,t.language,t.code,t.flag,t.active FROM `shop_languages` AS t WHERE 1 AND t.`active` = '1' ORDER BY id DESC LIMIT 0, 300 | 0.0077 |
7 | SELECT * FROM `shop_languages` WHERE id = ? | 0.0097 |
8 | SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC | 0.0081 |
9 | SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC | 0.0103 |
10 | SELECT COUNT(*) AS count FROM shop_products WHERE is_available = 1 AND active = 1 AND archive = 0 | 0.0073 |
11 | SELECT COUNT(*) AS count FROM shop_products WHERE archive = 1 | 0.0113 |
12 | SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC | 0.0187 |
13 | SELECT * FROM `shop_categories` WHERE id = ? | 0.0031 |
14 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = ? ORDER BY name ASC | 0.0065 |
15 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 653 ORDER BY name ASC | 0.0103 |
16 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2323 ORDER BY name ASC | 0.0077 |
17 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2480 ORDER BY name ASC | 0.0077 |
18 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 654 ORDER BY name ASC | 0.0038 |
19 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 657 ORDER BY name ASC | 0.0056 |
20 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2684 ORDER BY name ASC | 0.0041 |
21 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 656 ORDER BY name ASC | 0.0025 |
22 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2398 ORDER BY name ASC | 0.0008 |
23 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2634 ORDER BY name ASC | 0.0011 |
24 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2591 ORDER BY name ASC | 0.0024 |
25 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2477 ORDER BY name ASC | 0.0021 |
26 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2537 ORDER BY name ASC | 0.002 |
27 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2600 ORDER BY name ASC | 0.0063 |
28 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 667 ORDER BY name ASC | 0.0027 |
29 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2678 ORDER BY name ASC | 0.0019 |
30 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 583 ORDER BY name ASC | 0.0036 |
31 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 614 ORDER BY name ASC | 0.0064 |
32 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 625 ORDER BY name ASC | 0.005 |
33 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 635 ORDER BY name ASC | 0.0012 |
34 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 640 ORDER BY name ASC | 0.0083 |
35 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2666 ORDER BY name ASC | 0.0077 |
36 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 652 ORDER BY name ASC | 0.0015 |
37 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 645 ORDER BY name ASC | 0.0007 |
38 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 647 ORDER BY name ASC | 0.0049 |
39 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2576 ORDER BY name ASC | 0.005 |
40 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2669 ORDER BY name ASC | 0.002 |
41 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 642 ORDER BY name ASC | 0.0025 |
42 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 643 ORDER BY name ASC | 0.0031 |
43 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 142 ORDER BY name ASC | 0.0025 |
44 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 404 ORDER BY name ASC | 0.0082 |
45 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 143 ORDER BY name ASC | 0.0043 |
46 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2637 ORDER BY name ASC | 0.2335 |
47 | SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 176 ORDER BY name ASC | 0.9798 |
48 | SQLSTATE[HY000]: General error: 2006 MySQL server has gone away | 0.9798 |
- - | All Queries Time | 2.4478 |
#0 /var/www/bautrax.bg/www/app/system/Database.class.php(536): Registry::get() #1 /var/www/bautrax.bg/www/app/system/Database.class.php(135): Database->onDbError() #2 /var/www/bautrax.bg/www/app/modules/Store/models/Categories.model.php(248): Database->fetchAll() #3 /var/www/bautrax.bg/www/app/modules/Store/models/Search.model.php(77): Categories->getCategoriesWithParentBySort() #4 /var/www/bautrax.bg/www/app/modules/Store/front/Categories.controller.php(28): Search->load() #5 /var/www/bautrax.bg/www/app/system/Controller.class.php(257): CategoriesController->indexAction() #6 /var/www/bautrax.bg/www/index.php(124): Controller->Start() #7 {main}
'lang' is not set in the Registry