Magi
Осваиваюсь на форуме
 
Репутация: +0/-0
Offline
Сообщений: 55
|
 |
« : 24.10.2012, 21:32:33 » |
|
Помогите оптимизировать Joomla 2.5! Невозможно работать! Joomla 2.5.6, mysql 5.0.59, php 5.3.2 Шаблон JA_Purity II, оптимизировал все графические файлы, поставил JCH_Optimize 102 МБ статей (новостной сайт с 2003 года) top load averages: 12.23, 7.18, 5.41 бешеный mytop показывает кучу медленно выполняющихся запросов  Id DB Time Cmd Query or State -- ---- ------- -- ---- --- ---------- 12523 0 Query show full processlist 12515 13 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12478 69 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12460 88 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12446 104 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12424 150 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12406 188 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12395 220 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12382 236 Sleep 12375 297 Query UPDATE higb0_contentSET ordering = 1617WHERE id = '36097' 12368 317 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12348 356 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12349 356 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12346 358 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12336 375 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12306 439 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12300 444 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12296 449 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12285 469 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12268 509 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12263 513 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12262 516 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12246 553 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12240 556 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12238 560 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12234 566 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12229 567 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12228 572 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12223 577 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12219 580 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12215 583 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12209 590 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12205 599 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12161 679 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, 12149 698 Query SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out,
В top - куча пустых процессов httpd. Страница грузится 8 (!) минут в первый раз, на 2-3 загрузку страниц - я просто не дождался загрузки минут 20 уже. Добавление нового материала также зависло. Крутится колечко во вкладке Firefox Вот отладочная информация с первой загрузки страницы. Результаты профилирования Application 0.000 seconds (+0.000); 0.75 MB (+0.755) - afterLoad Application 0.108 seconds (+0.108); 5.31 MB (+4.556) - afterInitialise Application 0.554 seconds (+0.446); 8.43 MB (+3.121) - afterRoute Application 208.402 seconds (+207.848); 12.45 MB (+4.021) - afterDispatch Application 208.535 seconds (+0.133); 13.16 MB (+0.706) - beforeRenderModule mod_breadcrumbs (Breadcrumbs) Application 208.562 seconds (+0.027); 13.21 MB (+0.053) - afterRenderModule mod_breadcrumbs (Breadcrumbs) Application 208.563 seconds (+0.001); 13.21 MB (-0.003) - beforeRenderModule mod_jdownloads_stats (Статистика программ) Application 208.608 seconds (+0.044); 13.23 MB (+0.018) - afterRenderModule mod_jdownloads_stats (Статистика программ) Application 208.609 seconds (+0.001); 13.22 MB (-0.009) - beforeRenderModule mod_jlcackle (Последние комментарии) Application 208.612 seconds (+0.003); 13.22 MB (+0.007) - afterRenderModule mod_jlcackle (Последние комментарии) Application 208.613 seconds (+0.001); 13.23 MB (+0.001) - beforeRenderModule mod_blog_calendar (Blog Calendar Reload) Application 212.176 seconds (+3.564); 13.83 MB (+0.607) - afterRenderModule mod_blog_calendar (Blog Calendar Reload) Application 212.177 seconds (+0.000); 13.82 MB (-0.008) - beforeRenderModule mod_jlvkgroup (JL VK Group) Application 212.178 seconds (+0.001); 13.83 MB (+0.007) - afterRenderModule mod_jlvkgroup (JL VK Group) Application 212.178 seconds (+0.000); 13.83 MB (-0.002) - beforeRenderModule mod_custom (Facebook) Application 212.185 seconds (+0.007); 13.84 MB (+0.007) - afterRenderModule mod_custom (Facebook) Application 212.185 seconds (+0.000); 13.83 MB (-0.001) - beforeRenderModule mod_eventlist_wide (Latest Events Wide) Application 212.200 seconds (+0.015); 14.06 MB (+0.225) - afterRenderModule mod_eventlist_wide (Latest Events Wide) Application 212.202 seconds (+0.003); 14.07 MB (+0.008) - beforeRenderModule mod_menu (Main Menu) Application 212.240 seconds (+0.038); 14.17 MB (+0.099) - afterRenderModule mod_menu (Main Menu) Application 212.240 seconds (+0.000); 14.16 MB (-0.006) - beforeRenderModule mod_login (Авторизация) Application 213.010 seconds (+0.770); 14.22 MB (+0.063) - afterRenderModule mod_login (Авторизация) Application 213.010 seconds (+0.000); 14.22 MB (-0.002) - beforeRenderModule mod_ugambw (Module - Ultimate Google AdSense Module by WebSoft) Application 213.013 seconds (+0.002); 14.23 MB (+0.009) - afterRenderModule mod_ugambw (Module - Ultimate Google AdSense Module by WebSoft) Application 213.023 seconds (+0.010); 14.26 MB (+0.029) - beforeRenderModule mod_custom (Контакты) Application 213.024 seconds (+0.002); 14.26 MB (+0.004) - afterRenderModule mod_custom (Контакты) Application 213.025 seconds (+0.001); 14.27 MB (+0.006) - beforeRenderModule mod_socialmedialinks (Social Media Icon Links) Application 213.038 seconds (+0.013); 14.31 MB (+0.038) - afterRenderModule mod_socialmedialinks (Social Media Icon Links) Application 213.040 seconds (+0.002); 14.28 MB (-0.027) - beforeRenderModule mod_custom (Программы) Application 213.041 seconds (+0.002); 14.29 MB (+0.004) - afterRenderModule mod_custom (Программы) Application 213.042 seconds (+0.000); 14.29 MB (+0.001) - beforeRenderModule mod_jdownloads_last_updated (jDownloads Last Updated) Application 213.058 seconds (+0.017); 14.34 MB (+0.052) - afterRenderModule mod_jdownloads_last_updated (jDownloads Last Updated) Application 213.059 seconds (+0.001); 14.33 MB (-0.012) - beforeRenderModule mod_jdownloads_last_downloaded_files (jDownloads Last Downloaded Files) Application 213.101 seconds (+0.042); 14.56 MB (+0.232) - afterRenderModule mod_jdownloads_last_downloaded_files (jDownloads Last Downloaded Files) Application 213.103 seconds (+0.002); 14.39 MB (-0.169) - beforeRenderModule mod_custom (Магазин) Application 213.105 seconds (+0.002); 14.39 MB (+0.004) - afterRenderModule mod_custom (Магазин) Application 213.105 seconds (+0.000); 14.39 MB (-0.004) - beforeRenderModule mod_oscommerce (mod_oscommerce) Application 218.395 seconds (+5.290); 14.40 MB (+0.007) - afterRenderModule mod_oscommerce (mod_oscommerce) Application 218.396 seconds (+0.001); 14.39 MB (-0.002) - beforeRenderModule mod_custom (Документы) Application 218.397 seconds (+0.001); 14.40 MB (+0.004) - afterRenderModule mod_custom (Документы) Application 218.398 seconds (+0.001); 14.40 MB (+0.002) - beforeRenderModule mod_custom (Новости) Application 218.398 seconds (+0.001); 14.41 MB (+0.004) - afterRenderModule mod_custom (Новости) Application 218.399 seconds (+0.000); 14.40 MB (-0.002) - beforeRenderModule mod_articles_latest (Последние новости) Application 520.506 seconds (+302.107); 14.74 MB (+0.339) - afterRenderModule mod_articles_latest (Последние новости) Application 520.507 seconds (+0.001); 14.66 MB (-0.081) - beforeRenderModule mod_search (Поиск) Application 520.526 seconds (+0.019); 14.68 MB (+0.023) - afterRenderModule mod_search (Поиск) Application 527.453 seconds (+6.927); 15.19 MB (+0.511) - afterRender Использование памяти 15.16 MB (15,892,616 Bytes) Запросы к базе данных 58 SQL-запросов зафиксировано
SHOW TABLES SELECT file_id from higb0_jdownloads_files WHERE published = 1 AND use_timeframe = 1 AND publish_to != '0000-00-00 00:00:00' AND publish_to <= '2012-10-24 20:27:09' SELECT file_id from higb0_jdownloads_files WHERE published = 0 AND use_timeframe = 1 AND publish_from != '0000-00-00 00:00:00' AND publish_from <= '2012-10-24 20:27:09' SELECT m.id, m.menutype, m.title, m.alias, m.note, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component FROM higb0_menu AS m LEFT JOIN higb0_extensions AS e ON m.component_id = e.extension_id WHERE m.published = 1 AND m.parent_id > 0 AND m.client_id = 0 ORDER BY m.lft SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROM higb0_categories as c LEFT JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_content' AND parent.published != 1 GROUP BY cat.id) AS badcats ON badcats.id = c.id WHERE (c.extension='com_content' OR c.extension='system') AND c.access IN (1,1) AND c.published = 1 AND badcats.id is null GROUP BY c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time, c.created_time, c.created_user_id, c.description, c.extension, c.hits, c.language, c.level, c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id, c.path, c.published, c.rgt, c.title, c.modified_user_id ORDER BY c.lft SELECT alias, catid FROM higb0_content WHERE id = 0 SELECT id FROM higb0_content WHERE catid = 132 AND alias = 'pfizer-ureguliroval-pervyj-isk-v-otnoshenii-preparata-chantix-v-dosudebnom-poryadke' SHOW TABLES SELECT m.published, m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM higb0_modules AS m LEFT JOIN higb0_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN higb0_extensions AS e ON e.element = m.module AND e.client_id = m.client_id WHERE m.published = 1 AND e.enabled = 1 AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2012-10-24 16:27:09') AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2012-10-24 16:27:09') AND m.access IN (1,1) AND m.client_id = 0 AND (mm.menuid = 127 OR mm.menuid <= 0) ORDER BY m.position, m.ordering SELECT * FROM higb0_languages WHERE published=1 ORDER BY ordering ASC SELECT b.rules FROM higb0_assets AS a LEFT JOIN higb0_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt WHERE (a.name = 'com_content' OR a.parent_id=0) GROUP BY b.id, b.rules, b.lft ORDER BY b.lft SELECT b.id FROM higb0_usergroups AS a LEFT JOIN higb0_usergroups AS b ON b.lft <= a.lft AND b.rgt >= a.rgt WHERE a.id = 1 SELECT a.id, a.asset_id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, CASE WHEN badcats.id is null THEN a.state ELSE 0 END AS state, a.mask, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = 0 THEN a.created ELSE a.modified END as modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.urls, a.attribs, a.version, a.parentid, a.ordering, a.metakey, a.metadesc, a.access, a.hits, a.metadata, a.featured, a.language, a.xreference,c.title AS category_title, c.alias AS category_alias, c.access AS category_access,u.name AS author,contact.id as contactid,parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count FROM higb0_content AS a LEFT JOIN higb0_categories AS c on c.id = a.catid LEFT JOIN higb0_users AS u on u.id = a.created_by LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.language FROM higb0_contact_details AS contact WHERE contact.published = 1 GROUP BY contact.user_id, contact.language) AS contact ON contact.user_id = a.created_by LEFT JOIN higb0_categories as parent ON parent.id = c.parent_id LEFT JOIN higb0_content_rating AS v ON a.id = v.content_id LEFT OUTER JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_content' AND parent.published <= 0 GROUP BY cat.id) AS badcats ON badcats.id = c.id WHERE a.id = 39755 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-10-24 16:27:09') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-10-24 16:27:09') AND (a.state = 1 OR a.state =2) SELECT b.rules FROM higb0_assets AS a LEFT JOIN higb0_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt WHERE (a.name = 'com_content.article.39755' OR a.parent_id=0) GROUP BY b.id, b.rules, b.lft ORDER BY b.lft SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM higb0_content AS a LEFT JOIN higb0_categories AS cc ON cc.id = a.catid WHERE a.catid = 132 AND a.state = 1 AND a.access = 1 AND (a.state = 1 OR a.state = -1) AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '2012-10-24 16:27:09') AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= '2012-10-24 16:27:09') ORDER BY a.created DESC SELECT * FROM higb0_jcomments_settings UPDATE higb0_content SET hits = hits + 1 WHERE id = 39755 SELECT cat_id FROM higb0_jdownloads_cats WHERE published = 1 AND (cat_access <= '02' OR cat_group_access IN (9999999)) SELECT COUNT(*) FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) SELECT SUM(downloads) FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) SELECT created FROM higb0_content WHERE id='39755' SELECT a.id,a.created FROM higb0_content AS a INNER JOIN higb0_categories AS cc ON cc.id = a.catid WHERE a.state = 1 AND a.created >= '2012-09-30 20:00:00' AND a.created < '2012-10-31 21:00:00' AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-10-24 16:30:37' ) AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-10-24 16:30:37' ) AND a.access IN (1,1) AND cc.published = 1 SELECT b.rules FROM higb0_assets AS a LEFT JOIN higb0_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt WHERE (a.id = 1 OR a.parent_id=0) GROUP BY b.id, b.rules, b.lft ORDER BY b.lft SELECT a.title, a.dates, a.enddates, a.datdescription, a.times, a.endtimes, a.datimage, l.venue, l.state, l.locimage, l.city, c.catname, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(l.alias) THEN CONCAT_WS(':', l.id, l.alias) ELSE l.id END as venueslug, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug FROM higb0_eventlist_events AS a LEFT JOIN higb0_eventlist_venues AS l ON l.id = a.locid LEFT JOIN higb0_eventlist_categories AS c ON c.id = a.catsid WHERE a.dates >= CURDATE() AND a.published = 1 AND c.access <= 1 AND (c.id=1) ORDER BY a.dates, a.times LIMIT 5 SELECT alias, catid FROM higb0_content WHERE id = 0 SELECT id FROM higb0_content WHERE catid = 132 AND alias = 'pfizer-ureguliroval-pervyj-isk-v-otnoshenii-preparata-chantix-v-dosudebnom-poryadke' SELECT id from higb0_menu WHERE link = 'index.php?option=com_jdownloads&view=viewcategories' and published = 1 SELECT setting_value FROM higb0_jdownloads_config WHERE setting_name = 'days.is.file.updated' SELECT cat_id FROM higb0_jdownloads_cats WHERE published = 1 AND (cat_access <= '02' OR cat_group_access IN (9999999)) SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND update_active = 1 AND modified_date >= "2012-10-09 00:10:00" ORDER BY modified_date DESC LIMIT 1 SELECT * FROM higb0_jdownloads_log ORDER BY log_datetime DESC LIMIT 13 SELECT id from higb0_menu WHERE link = 'index.php?option=com_jdownloads&view=viewcategories' and published = 1 SHOW FULL COLUMNS FROM `higb0_jdownloads_cats` SELECT cat_id FROM higb0_jdownloads_cats WHERE published = 1 AND (cat_access <= '02' OR cat_group_access IN (999999)) SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 75 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 90 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 71 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 79 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 78 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 92 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 87 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 85 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 83 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 64 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 89 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 84 SELECT * FROM higb0_jdownloads_files WHERE published = 1 AND cat_id IN (1,20,21,18,19,10,11,12,13,14,15,16,17,22,23,25,26,24,27,30,31,32,33,34,35,38,36,37,41,39,42,40,43,44) AND file_id = 93 SELECT id from higb0_menu WHERE link = 'index.php?option=com_jdownloads&view=viewcategory&catid=37' and published = 1 SELECT cat_dir FROM higb0_jdownloads_cats WHERE cat_id = 37 SELECT id from higb0_menu WHERE link = 'index.php?option=com_jdownloads&view=viewcategory&catid=40' and published = 1 SELECT cat_dir FROM higb0_jdownloads_cats WHERE cat_id = 40 SELECT id from higb0_menu WHERE link = 'index.php?option=com_jdownloads&view=viewcategory&catid=27' and published = 1 SELECT cat_dir FROM higb0_jdownloads_cats WHERE cat_id = 27 SELECT id, rules FROM `higb0_viewlevels` SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = 0 THEN a.created ELSE a.modified END as modified, a.modified_by, uam.name as modified_by_name, CASE WHEN a.publish_up = 0 THEN a.created ELSE a.publish_up END as publish_up,a.publish_down, a.images, a.urls, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, LENGTH(a.fulltext) AS readmore, CASE WHEN badcats.id is not null THEN 0 ELSE a.state END AS state,c.title AS category_title, c.path AS category_route, c.access AS category_access, c.alias AS category_alias, CASE WHEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE ua.name END AS author,ua.email AS author_email,contact.id as contactid,parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count,c.published, CASE WHEN badcats.id is null THEN c.published ELSE 0 END AS parents_published FROM higb0_content AS a LEFT JOIN higb0_content_frontpage AS fp ON fp.content_id = a.id LEFT JOIN higb0_categories AS c ON c.id = a.catid LEFT JOIN higb0_users AS ua ON ua.id = a.created_by LEFT JOIN higb0_users AS uam ON uam.id = a.modified_by LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.language FROM higb0_contact_details AS contact WHERE contact.published = 1 GROUP BY contact.user_id, contact.language) AS contact ON contact.user_id = a.created_by LEFT JOIN higb0_categories as parent ON parent.id = c.parent_id LEFT JOIN higb0_content_rating AS v ON a.id = v.content_id LEFT OUTER JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_content' AND parent.published != 1 GROUP BY cat.id ) AS badcats ON badcats.id = c.id WHERE a.access IN (1,1) AND c.access IN (1,1) AND CASE WHEN badcats.id is null THEN a.state ELSE 0 END = 1 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-10-24 16:27:09') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-10-24 16:27:09') GROUP BY a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, a.created, a.modified, a.modified_by, uam.name, a.publish_up, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, a.fulltext, a.state, a.publish_down, badcats.id, c.title, c.path, c.access, c.alias, uam.id, ua.name, ua.email, contact.id, parent.title, parent.id, parent.path, parent.alias, v.rating_sum, v.rating_count, c.published, c.lft, a.ordering, parent.lft, fp.ordering, c.id, a.images, a.urls ORDER BY a.created DESC LIMIT 0, 3 SELECT b.title as cattitle, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(b.alias) THEN CONCAT_WS(':', a.catid, b.alias) ELSE a.catid END as catslug FROM higb0_content AS a LEFT JOIN higb0_categories AS b ON b.id = a.catid WHERE a.id = 39755 SHOW TABLES SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROM higb0_categories as c LEFT JOIN higb0_categories AS s ON (s.lft <= c.lft AND s.rgt >= c.rgt) OR (s.lft > c.lft AND s.rgt < c.rgt) LEFT JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_contact' AND parent.published != 1 GROUP BY cat.id) AS badcats ON badcats.id = c.id WHERE (c.extension='com_contact' OR c.extension='system') AND c.access IN (1,1) AND c.published = 1 AND s.id=4 AND badcats.id is null GROUP BY c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time, c.created_time, c.created_user_id, c.description, c.extension, c.hits, c.language, c.level, c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id, c.path, c.published, c.rgt, c.title, c.modified_user_id ORDER BY c.lft
30 типов SQL-запросов зафиксировано, отсортировано по вхождениям Запросы типа SELECT:
14 × SELECT * FROM higb0_jdownloads_files 5 × SELECT id from higb0_menu 3 × SELECT cat_dir FROM higb0_jdownloads_cats 3 × SELECT cat_id FROM higb0_jdownloads_cats 3 × SELECT b.rules FROM higb0_assets AS a LEFT JOIN higb0_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt 2 × SELECT file_id from higb0_jdownloads_files 2 × SELECT id FROM higb0_content 2 × SELECT alias, catid FROM higb0_content 1 × SELECT id, rules FROM `higb0_viewlevels 1 × SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROM higb0_categories as c LEFT JOIN higb0_categories AS s ON (s.lft <= c.lft AND s.rgt >= c.rgt) OR (s.lft > c.lft AND s.rgt < c.rgt) LEFT JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt 1 × SELECT a.title, a.dates, a.enddates, a.datdescription, a.times, a.endtimes, a.datimage, l.venue, l.state, l.locimage, l.city, c.catname, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(l.alias) THEN CONCAT_WS(':', l.id, l.alias) ELSE l.id END as venueslug, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug FROM higb0_eventlist_events AS a LEFT JOIN higb0_eventlist_venues AS l ON l.id = a.locid LEFT JOIN higb0_eventlist_categories AS c ON c.id = a.catsid 1 × SELECT b.title as cattitle, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(b.alias) THEN CONCAT_WS(':', a.catid, b.alias) ELSE a.catid END as catslug FROM higb0_content AS a LEFT JOIN higb0_categories AS b ON b.id = a.catid 1 × SELECT setting_value FROM higb0_jdownloads_config 1 × SELECT * FROM higb0_jdownloads_log 1 × SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = 0 THEN a.created ELSE a.modified END as modified, a.modified_by, uam.name as modified_by_name, CASE WHEN a.publish_up = 0 THEN a.created ELSE a.publish_up END as publish_up,a.publish_down, a.images, a.urls, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, LENGTH(a.fulltext) AS readmore, CASE WHEN badcats.id is not null THEN 0 ELSE a.state END AS state,c.title AS category_title, c.path AS category_route, c.access AS category_access, c.alias AS category_alias, CASE WHEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE ua.name END AS author,ua.email AS author_email,contact.id as contactid,parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count,c.published, CASE WHEN badcats.id is null THEN c.published ELSE 0 END AS parents_published FROM higb0_content AS a LEFT JOIN higb0_content_frontpage AS fp ON fp.content_id = a.id LEFT JOIN higb0_categories AS c ON c.id = a.catid LEFT JOIN higb0_users AS ua ON ua.id = a.created_by LEFT JOIN higb0_users AS uam ON uam.id = a.modified_by LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.language FROM higb0_contact_details AS contact 1 × SELECT a.id,a.created FROM higb0_content AS a INNER JOIN higb0_categories AS cc ON cc.id = a.catid 1 × SELECT COUNT(*) FROM higb0_jdownloads_files 1 × SELECT * FROM higb0_languages 1 × SELECT m.published, m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM higb0_modules AS m LEFT JOIN higb0_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN higb0_extensions AS e ON e.element = m.module AND e.client_id = m.client_id 1 × SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROM higb0_categories as c LEFT JOIN (SELECT cat.id as id FROM higb0_categories AS cat JOIN higb0_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt 1 × SELECT m.id, m.menutype, m.title, m.alias, m.note, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component FROM higb0_menu AS m LEFT JOIN higb0_extensions AS e ON m.component_id = e.extension_id 1 × SELECT b.id FROM higb0_usergroups AS a LEFT JOIN higb0_usergroups AS b ON b.lft <= a.lft AND b.rgt >= a.rgt 1 × SELECT a.id, a.asset_id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, CASE WHEN badcats.id is null THEN a.state ELSE 0 END AS state, a.mask, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = 0 THEN a.created ELSE a.modified END as modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.urls, a.attribs, a.version, a.parentid, a.ordering, a.metakey, a.metadesc, a.access, a.hits, a.metadata, a.featured, a.language, a.xreference,c.title AS category_title, c.alias AS category_alias, c.access AS category_access,u.name AS author,contact.id as contactid,parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count FROM higb0_content AS a LEFT JOIN higb0_categories AS c on c.id = a.catid LEFT JOIN higb0_users AS u on u.id = a.created_by LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.language FROM higb0_contact_details AS contact 1 × SELECT SUM(downloads) FROM higb0_jdownloads_files 1 × SELECT * FROM higb0_jcomments_setting 1 × SELECT a.id, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(':', cc.id, cc.alias) ELSE cc.id END as catslug FROM higb0_content AS a LEFT JOIN higb0_categories AS cc ON cc.id = a.catid 1 × SELECT created FROM higb0_content
Прочие SQL-запросы:
3 × SHOW TABLE 1 × SHOW FULL COLUMNS FROM `higb0_jdownloads_cats 1 × UPDATE higb0_content SET hits = hits + 1
Ума не приложу, что делать 
|