Guest User

Untitled

a guest
Jul 11th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 27.98 KB | None | 0 0
  1. # Vanila Joomla 3.1.1, WITH category list ON frontpage, ~3k articles IN category
  2. Joomla! Debug Console
  3. SESSION
  4. __default
  5. SESSION.client.browser ⇒ Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
  6. USER
  7. SESSION.token ⇒ a54201180514197c5fe6d1c16ab420b7
  8. Profile Information
  9. Application 0.000 seconds (+0.000); 0.19 MB (+0.185) - afterLoad
  10. Application 0.059 seconds (+0.059); 0.92 MB (+0.731) - afterInitialise
  11. Application 0.079 seconds (+0.019); 1.10 MB (+0.181) - afterRoute
  12. Application 11.155 seconds (+11.076); 1.84 MB (+0.744) - afterDispatch
  13. Application 11.161 seconds (+0.006); 1.94 MB (+0.098) - beforeRenderModule mod_articles_latest (Latest Article)
  14. Application 15.597 seconds (+4.436); 1.96 MB (+0.023) - afterRenderModule mod_articles_latest (Latest Article)
  15. Application 15.597 seconds (+0.000); 1.96 MB (-0.005) - beforeRenderModule mod_login (Login Form)
  16. Application 15.603 seconds (+0.006); 1.97 MB (+0.014) - afterRenderModule mod_login (Login Form)
  17. Application 15.603 seconds (+0.000); 1.97 MB (+0.001) - beforeRenderModule mod_breadcrumbs (Breadcrumbs)
  18. Application 15.606 seconds (+0.003); 1.98 MB (+0.008) - afterRenderModule mod_breadcrumbs (Breadcrumbs)
  19. Application 15.607 seconds (+0.001); 1.98 MB (-0.001) - beforeRenderModule mod_menu (Main Menu)
  20. Application 15.618 seconds (+0.011); 2.07 MB (+0.092) - afterRenderModule mod_menu (Main Menu)
  21. Application 15.623 seconds (+0.005); 2.09 MB (+0.020) - afterRender
  22. Memory Usage
  23. 2.11 MB (2,213,636 Bytes)
  24. DATABASE Queries
  25. 34 Queries Logged
  26.  
  27.     SELECT `data`
  28.       FROM `w0z9v_session`
  29.       WHERE `session_id` = 'tjl2iv5e7e5kjfu03l9ul0tt30'
  30.     SELECT extension_id AS id, element AS "option", params, enabled
  31.       FROM w0z9v_extensions
  32.       WHERE `type` = 'component'
  33.       AND `element` = 'com_users'
  34.     SELECT folder AS TYPE, element AS name, params
  35.       FROM w0z9v_extensions
  36.       WHERE enabled >= 1
  37.       AND TYPE ='plugin'
  38.       AND state >= 0
  39.       AND access IN (1,1,5)
  40.       ORDER BY ordering
  41.     SELECT extension_id AS id, element AS "option", params, enabled
  42.       FROM w0z9v_extensions
  43.       WHERE `type` = 'component'
  44.       AND `element` = 'com_languages'
  45.     SELECT extension_id AS id, element AS "option", params, enabled
  46.       FROM w0z9v_extensions
  47.       WHERE `type` = 'component'
  48.       AND `element` = 'com_kunena'
  49.     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
  50.       FROM w0z9v_menu AS m
  51.       LEFT JOIN w0z9v_extensions AS e
  52.       ON m.component_id = e.extension_id
  53.       WHERE m.published = 1
  54.       AND m.parent_id > 0
  55.       AND m.client_id = 0
  56.       ORDER BY m.lft
  57.     SELECT extension_id AS id, element AS "option", params, enabled
  58.       FROM w0z9v_extensions
  59.       WHERE `type` = 'component'
  60.       AND `element` = 'com_content'
  61.     SELECT *
  62.       FROM w0z9v_languages
  63.       WHERE published=1
  64.       ORDER BY ordering ASC
  65.     SELECT id, home, template, s.params
  66.       FROM w0z9v_template_styles AS s
  67.       LEFT JOIN w0z9v_extensions AS e
  68.       ON e.element=s.template
  69.       AND e.TYPE='template'
  70.       AND e.client_id=s.client_id
  71.       WHERE s.client_id = 0
  72.       AND e.enabled = 1
  73.     SELECT b.rules
  74.       FROM w0z9v_assets AS a
  75.       LEFT JOIN w0z9v_assets AS b
  76.       ON b.lft <= a.lft
  77.       AND b.rgt >= a.rgt
  78.       WHERE (a.name = 'com_content')
  79.       GROUP BY b.id, b.rules, b.lft
  80.       ORDER BY b.lft
  81.     SELECT b.id
  82.       FROM w0z9v_usergroups AS a
  83.       LEFT JOIN w0z9v_usergroups AS b
  84.       ON b.lft <= a.lft
  85.       AND b.rgt >= a.rgt
  86.       WHERE a.id = 9
  87.     SELECT 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, c.version,
  88.       CASE WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug,COUNT(i.`id`) AS numitems
  89.       FROM w0z9v_categories AS c
  90.       LEFT JOIN w0z9v_categories AS s
  91.       ON (s.lft <= c.lft
  92.       AND s.rgt >= c.rgt) OR (s.lft > c.lft
  93.       AND s.rgt < c.rgt)
  94.       LEFT JOIN (SELECT cat.id AS id
  95.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  96.       ON cat.lft BETWEEN parent.lft
  97.       AND parent.rgt
  98.       WHERE parent.extension = 'com_content'
  99.       AND parent.published != 1
  100.       GROUP BY cat.id) AS badcats
  101.       ON badcats.id = c.id
  102.       LEFT JOIN `w0z9v_content` AS i
  103.       ON i.`catid` = c.id
  104.       AND i.state = 1
  105.       WHERE (c.extension='com_content' OR c.extension='system')
  106.       AND c.access IN (1,1,5)
  107.       AND c.published = 1
  108.       AND s.id=8
  109.       AND badcats.id IS NULL
  110.       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, c.version
  111.       ORDER BY c.lft
  112.     SELECT b.rules
  113.       FROM w0z9v_assets AS a
  114.       LEFT JOIN w0z9v_assets AS b
  115.       ON b.lft <= a.lft
  116.       AND b.rgt >= a.rgt
  117.       WHERE (a.name = 'com_content.category.8')
  118.       GROUP BY b.id, b.rules, b.lft
  119.       ORDER BY b.lft
  120.     SELECT a.id, a.title, a.alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias,
  121.       CASE WHEN a.modified = '0000-00-00 00:00:00' THEN a.created ELSE a.modified END AS modified, a.modified_by, uam.name AS modified_by_name,
  122.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' 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,
  123.       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,
  124.       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,
  125.       CASE WHEN badcats.id IS NULL THEN c.published ELSE 0 END AS parents_published
  126.       FROM w0z9v_content AS a
  127.       LEFT JOIN w0z9v_content_frontpage AS fp
  128.       ON fp.content_id = a.id
  129.       LEFT JOIN w0z9v_categories AS c
  130.       ON c.id = a.catid
  131.       LEFT JOIN w0z9v_users AS ua
  132.       ON ua.id = a.created_by
  133.       LEFT JOIN w0z9v_users AS uam
  134.       ON uam.id = a.modified_by
  135.       LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.LANGUAGE
  136.       FROM w0z9v_contact_details AS contact
  137.       WHERE contact.published = 1
  138.       GROUP BY contact.user_id, contact.LANGUAGE) AS contact
  139.       ON contact.user_id = a.created_by
  140.       LEFT JOIN w0z9v_categories AS parent
  141.       ON parent.id = c.parent_id
  142.       LEFT JOIN w0z9v_content_rating AS v
  143.       ON a.id = v.content_id
  144.       LEFT
  145.       OUTER JOIN (SELECT cat.id AS id
  146.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  147.       ON cat.lft BETWEEN parent.lft
  148.       AND parent.rgt
  149.       WHERE parent.extension = 'com_content'
  150.       AND parent.published != 1
  151.       GROUP BY cat.id ) AS badcats
  152.       ON badcats.id = c.id
  153.       WHERE a.access IN (1,1,5)
  154.       AND c.access IN (1,1,5)
  155.       AND
  156.       CASE WHEN badcats.id IS NULL THEN a.state ELSE 0 END = 1
  157.       AND a.catid = 8
  158.       AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2013-07-11 13:29:10')
  159.       AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2013-07-11 13:29:10')
  160.       GROUP BY a.id, a.title, a.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
  161.       ORDER BY c.lft,
  162.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' THEN a.created ELSE a.publish_up END DESC , a.created
  163.       LIMIT 0, 10
  164.     SELECT extension_id AS id, element AS "option", params, enabled
  165.       FROM w0z9v_extensions
  166.       WHERE `type` = 'component'
  167.       AND `element` = 'com_tags'
  168.     SELECT `m`.`tag_id`,`t`.*
  169.       FROM `w0z9v_contentitem_tag_map` AS m
  170.       INNER JOIN `w0z9v_tags` AS t
  171.       ON `m`.`tag_id` = `t`.`id`
  172.       WHERE `m`.`type_alias` = 'com_content.article'
  173.       AND `m`.`content_item_id` = 5913
  174.       AND `t`.`published` = 1
  175.       AND t.access IN (1,1,5)
  176.     SELECT `m`.`tag_id`,`t`.*
  177.       FROM `w0z9v_contentitem_tag_map` AS m
  178.       INNER JOIN `w0z9v_tags` AS t
  179.       ON `m`.`tag_id` = `t`.`id`
  180.       WHERE `m`.`type_alias` = 'com_content.article'
  181.       AND `m`.`content_item_id` = 9170
  182.       AND `t`.`published` = 1
  183.       AND t.access IN (1,1,5)
  184.     SELECT `m`.`tag_id`,`t`.*
  185.       FROM `w0z9v_contentitem_tag_map` AS m
  186.       INNER JOIN `w0z9v_tags` AS t
  187.       ON `m`.`tag_id` = `t`.`id`
  188.       WHERE `m`.`type_alias` = 'com_content.article'
  189.       AND `m`.`content_item_id` = 9169
  190.       AND `t`.`published` = 1
  191.       AND t.access IN (1,1,5)
  192.     SELECT `m`.`tag_id`,`t`.*
  193.       FROM `w0z9v_contentitem_tag_map` AS m
  194.       INNER JOIN `w0z9v_tags` AS t
  195.       ON `m`.`tag_id` = `t`.`id`
  196.       WHERE `m`.`type_alias` = 'com_content.article'
  197.       AND `m`.`content_item_id` = 9168
  198.       AND `t`.`published` = 1
  199.       AND t.access IN (1,1,5)
  200.     SELECT `m`.`tag_id`,`t`.*
  201.       FROM `w0z9v_contentitem_tag_map` AS m
  202.       INNER JOIN `w0z9v_tags` AS t
  203.       ON `m`.`tag_id` = `t`.`id`
  204.       WHERE `m`.`type_alias` = 'com_content.article'
  205.       AND `m`.`content_item_id` = 9167
  206.       AND `t`.`published` = 1
  207.       AND t.access IN (1,1,5)
  208.     SELECT `m`.`tag_id`,`t`.*
  209.       FROM `w0z9v_contentitem_tag_map` AS m
  210.       INNER JOIN `w0z9v_tags` AS t
  211.       ON `m`.`tag_id` = `t`.`id`
  212.       WHERE `m`.`type_alias` = 'com_content.article'
  213.       AND `m`.`content_item_id` = 9166
  214.       AND `t`.`published` = 1
  215.       AND t.access IN (1,1,5)
  216.     SELECT `m`.`tag_id`,`t`.*
  217.       FROM `w0z9v_contentitem_tag_map` AS m
  218.       INNER JOIN `w0z9v_tags` AS t
  219.       ON `m`.`tag_id` = `t`.`id`
  220.       WHERE `m`.`type_alias` = 'com_content.article'
  221.       AND `m`.`content_item_id` = 9165
  222.       AND `t`.`published` = 1
  223.       AND t.access IN (1,1,5)
  224.     SELECT `m`.`tag_id`,`t`.*
  225.       FROM `w0z9v_contentitem_tag_map` AS m
  226.       INNER JOIN `w0z9v_tags` AS t
  227.       ON `m`.`tag_id` = `t`.`id`
  228.       WHERE `m`.`type_alias` = 'com_content.article'
  229.       AND `m`.`content_item_id` = 9164
  230.       AND `t`.`published` = 1
  231.       AND t.access IN (1,1,5)
  232.     SELECT `m`.`tag_id`,`t`.*
  233.       FROM `w0z9v_contentitem_tag_map` AS m
  234.       INNER JOIN `w0z9v_tags` AS t
  235.       ON `m`.`tag_id` = `t`.`id`
  236.       WHERE `m`.`type_alias` = 'com_content.article'
  237.       AND `m`.`content_item_id` = 9163
  238.       AND `t`.`published` = 1
  239.       AND t.access IN (1,1,5)
  240.     SELECT `m`.`tag_id`,`t`.*
  241.       FROM `w0z9v_contentitem_tag_map` AS m
  242.       INNER JOIN `w0z9v_tags` AS t
  243.       ON `m`.`tag_id` = `t`.`id`
  244.       WHERE `m`.`type_alias` = 'com_content.article'
  245.       AND `m`.`content_item_id` = 9162
  246.       AND `t`.`published` = 1
  247.       AND t.access IN (1,1,5)
  248.     SELECT a.id, a.title, a.alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias,
  249.       CASE WHEN a.modified = '0000-00-00 00:00:00' THEN a.created ELSE a.modified END AS modified, a.modified_by, uam.name AS modified_by_name,
  250.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' 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,
  251.       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,
  252.       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,
  253.       CASE WHEN badcats.id IS NULL THEN c.published ELSE 0 END AS parents_published
  254.       FROM w0z9v_content AS a
  255.       LEFT JOIN w0z9v_content_frontpage AS fp
  256.       ON fp.content_id = a.id
  257.       LEFT JOIN w0z9v_categories AS c
  258.       ON c.id = a.catid
  259.       LEFT JOIN w0z9v_users AS ua
  260.       ON ua.id = a.created_by
  261.       LEFT JOIN w0z9v_users AS uam
  262.       ON uam.id = a.modified_by
  263.       LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.LANGUAGE
  264.       FROM w0z9v_contact_details AS contact
  265.       WHERE contact.published = 1
  266.       GROUP BY contact.user_id, contact.LANGUAGE) AS contact
  267.       ON contact.user_id = a.created_by
  268.       LEFT JOIN w0z9v_categories AS parent
  269.       ON parent.id = c.parent_id
  270.       LEFT JOIN w0z9v_content_rating AS v
  271.       ON a.id = v.content_id
  272.       LEFT
  273.       OUTER JOIN (SELECT cat.id AS id
  274.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  275.       ON cat.lft BETWEEN parent.lft
  276.       AND parent.rgt
  277.       WHERE parent.extension = 'com_content'
  278.       AND parent.published != 1
  279.       GROUP BY cat.id ) AS badcats
  280.       ON badcats.id = c.id
  281.       WHERE a.access IN (1,1,5)
  282.       AND c.access IN (1,1,5)
  283.       AND
  284.       CASE WHEN badcats.id IS NULL THEN a.state ELSE 0 END = 1
  285.       AND a.catid = 8
  286.       AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2013-07-11 13:29:10')
  287.       AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2013-07-11 13:29:10')
  288.       GROUP BY a.id, a.title, a.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
  289.       ORDER BY c.lft,
  290.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' THEN a.created ELSE a.publish_up END DESC , a.created
  291.     UPDATE w0z9v_categories
  292.       SET hits = hits + 1
  293.       WHERE id = 8
  294.     SELECT `m`.`tag_id`,`t`.*
  295.       FROM `w0z9v_contentitem_tag_map` AS m
  296.       INNER JOIN `w0z9v_tags` AS t
  297.       ON `m`.`tag_id` = `t`.`id`
  298.       WHERE `m`.`type_alias` = 'com_content.category'
  299.       AND `m`.`content_item_id` = 8
  300.       AND `t`.`published` = 1
  301.       AND t.access IN (1,1,5)
  302.     SELECT 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, c.version,
  303.       CASE WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
  304.       FROM w0z9v_categories AS c
  305.       LEFT JOIN w0z9v_categories AS s
  306.       ON (s.lft <= c.lft
  307.       AND s.rgt >= c.rgt) OR (s.lft > c.lft
  308.       AND s.rgt < c.rgt)
  309.       LEFT JOIN (SELECT cat.id AS id
  310.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  311.       ON cat.lft BETWEEN parent.lft
  312.       AND parent.rgt
  313.       WHERE parent.extension = 'com_content'
  314.       AND parent.published != 1
  315.       GROUP BY cat.id) AS badcats
  316.       ON badcats.id = c.id
  317.       WHERE (c.extension='com_content' OR c.extension='system')
  318.       AND c.access IN (1,1,5)
  319.       AND c.published = 1
  320.       AND s.id=8
  321.       AND badcats.id IS NULL
  322.       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, c.version
  323.       ORDER BY c.lft
  324.     SELECT m.id, m.title, m.module, m.POSITION, m.content, m.showtitle, m.params, mm.menuid
  325.       FROM w0z9v_modules AS m
  326.       LEFT JOIN w0z9v_modules_menu AS mm
  327.       ON mm.moduleid = m.id
  328.       LEFT JOIN w0z9v_extensions AS e
  329.       ON e.element = m.module
  330.       AND e.client_id = m.client_id
  331.       WHERE m.published = 1
  332.       AND e.enabled = 1
  333.       AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2013-07-11 13:29:10')
  334.       AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2013-07-11 13:29:10')
  335.       AND m.access IN (1,1,5)
  336.       AND m.client_id = 0
  337.       AND (mm.menuid = 435 OR mm.menuid <= 0)
  338.       ORDER BY m.POSITION, m.ordering
  339.     SELECT id, rules
  340.       FROM `w0z9v_viewlevels`
  341.     SELECT a.id, a.title, a.alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias,
  342.       CASE WHEN a.modified = '0000-00-00 00:00:00' THEN a.created ELSE a.modified END AS modified, a.modified_by, uam.name AS modified_by_name,
  343.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' 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,
  344.       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,
  345.       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,
  346.       CASE WHEN badcats.id IS NULL THEN c.published ELSE 0 END AS parents_published
  347.       FROM w0z9v_content AS a
  348.       LEFT JOIN w0z9v_content_frontpage AS fp
  349.       ON fp.content_id = a.id
  350.       LEFT JOIN w0z9v_categories AS c
  351.       ON c.id = a.catid
  352.       LEFT JOIN w0z9v_users AS ua
  353.       ON ua.id = a.created_by
  354.       LEFT JOIN w0z9v_users AS uam
  355.       ON uam.id = a.modified_by
  356.       LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.LANGUAGE
  357.       FROM w0z9v_contact_details AS contact
  358.       WHERE contact.published = 1
  359.       GROUP BY contact.user_id, contact.LANGUAGE) AS contact
  360.       ON contact.user_id = a.created_by
  361.       LEFT JOIN w0z9v_categories AS parent
  362.       ON parent.id = c.parent_id
  363.       LEFT JOIN w0z9v_content_rating AS v
  364.       ON a.id = v.content_id
  365.       LEFT
  366.       OUTER JOIN (SELECT cat.id AS id
  367.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  368.       ON cat.lft BETWEEN parent.lft
  369.       AND parent.rgt
  370.       WHERE parent.extension = 'com_content'
  371.       AND parent.published != 1
  372.       GROUP BY cat.id ) AS badcats
  373.       ON badcats.id = c.id
  374.       WHERE a.access IN (1,1,5)
  375.       AND c.access IN (1,1,5)
  376.       AND
  377.       CASE WHEN badcats.id IS NULL THEN a.state ELSE 0 END = 1
  378.       AND a.catid IN (8,10,11,12,13)
  379.       AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2013-07-11 13:29:10')
  380.       AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2013-07-11 13:29:10')
  381.       GROUP BY a.id, a.title, a.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
  382.       ORDER BY a.created DESC
  383.       LIMIT 0, 10
  384.     SELECT *
  385.       FROM w0z9v_kunena_configuration
  386.       WHERE id=1
  387.     UPDATE `w0z9v_session`
  388.       SET `data` = '__default|a:8:{s:15:\"session.counter\";i:7;s:19:\"session.timer.start\";i:1373548759;s:18:\"session.timer.last\";i:1373549339;s:17:\"session.timer.now\";i:1373549350;s:22:\"session.client.browser\";s:72:\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\\0\\0\\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":24:{s:9:\"\\0\\0\\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:1:{i:0;s:1:\"9\";}s:5:\"guest\";i:1;s:13:\"lastResetTime\";N;s:10:\"resetCount\";N;s:10:\"\\0\\0\\0_params\";O:9:\"JRegistry\":1:{s:7:\"\\0\\0\\0data\";O:8:\"stdClass\":0:{}}s:14:\"\\0\\0\\0_authGroups\";a:2:{i:0;i:1;i:1;i:9;}s:14:\"\\0\\0\\0_authLevels\";a:3:{i:0;i:1;i:1;i:1;i:2;i:5;}s:15:\"\\0\\0\\0_authActions\";N;s:12:\"\\0\\0\\0_errorMsg\";N;s:10:\"\\0\\0\\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"a54201180514197c5fe6d1c16ab420b7\";}' , `time` = '1373549365'
  389.       WHERE `session_id` = 'tjl2iv5e7e5kjfu03l9ul0tt30'
  390.  
  391. 17 Query Types Logged, Sorted BY Occurrences.
  392. SELECT TABLES:
  393.  
  394.     11 × SELECT `m`.`tag_id`,`t`.*
  395.       FROM `w0z9v_contentitem_tag_map` AS m
  396.       INNER JOIN `w0z9v_tags` AS t
  397.       ON `m`.`tag_id` = `t`.`id`
  398.     5 × SELECT extension_id AS id, element AS "option", params, enabled
  399.       FROM w0z9v_extensions
  400.     3 × SELECT a.id, a.title, a.alias, a.introtext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias,
  401.       CASE WHEN a.modified = '0000-00-00 00:00:00' THEN a.created ELSE a.modified END AS modified, a.modified_by, uam.name AS modified_by_name,
  402.       CASE WHEN a.publish_up = '0000-00-00 00:00:00' 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,
  403.       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,
  404.       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,
  405.       CASE WHEN badcats.id IS NULL THEN c.published ELSE 0 END AS parents_published
  406.       FROM w0z9v_content AS a
  407.       LEFT JOIN w0z9v_content_frontpage AS fp
  408.       ON fp.content_id = a.id
  409.       LEFT JOIN w0z9v_categories AS c
  410.       ON c.id = a.catid
  411.       LEFT JOIN w0z9v_users AS ua
  412.       ON ua.id = a.created_by
  413.       LEFT JOIN w0z9v_users AS uam
  414.       ON uam.id = a.modified_by
  415.       LEFT JOIN ( SELECT contact.user_id, MAX(contact.id) AS id, contact.LANGUAGE
  416.       FROM w0z9v_contact_details AS contact
  417.     2 × SELECT b.rules
  418.       FROM w0z9v_assets AS a
  419.       LEFT JOIN w0z9v_assets AS b
  420.       ON b.lft <= a.lft
  421.       AND b.rgt >= a.rgt
  422.     1 × SELECT 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, c.version,
  423.       CASE WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
  424.       FROM w0z9v_categories AS c
  425.       LEFT JOIN w0z9v_categories AS s
  426.       ON (s.lft <= c.lft
  427.       AND s.rgt >= c.rgt) OR (s.lft > c.lft
  428.       AND s.rgt < c.rgt)
  429.       LEFT JOIN (SELECT cat.id AS id
  430.       FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  431.       ON cat.lft BETWEEN parent.lft
  432.       AND parent.rgt
  433.     1 × SELECT id, rules
  434.       FROM `w0z9v_viewlevels
  435.    1 × SELECT *
  436.      FROM w0z9v_kunena_configuration
  437.    1 × SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid
  438.      FROM w0z9v_modules AS m
  439.      LEFT JOIN w0z9v_modules_menu AS mm
  440.      ON mm.moduleid = m.id
  441.      LEFT JOIN w0z9v_extensions AS e
  442.      ON e.element = m.module
  443.      AND e.client_id = m.client_id
  444.    1 × SELECT b.id
  445.      FROM w0z9v_usergroups AS a
  446.      LEFT JOIN w0z9v_usergroups AS b
  447.      ON b.lft <= a.lft
  448.      AND b.rgt >= a.rgt
  449.    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
  450.      FROM w0z9v_menu AS m
  451.      LEFT JOIN w0z9v_extensions AS e
  452.      ON m.component_id = e.extension_id
  453.    1 × SELECT folder AS type, element AS name, params
  454.      FROM w0z9v_extensions
  455.    1 × SELECT *
  456.      FROM w0z9v_languages
  457.    1 × SELECT id, home, template, s.params
  458.      FROM w0z9v_template_styles as s
  459.      LEFT JOIN w0z9v_extensions as e
  460.      ON e.element=s.template
  461.      AND e.type='template'
  462.      AND e.client_id=s.client_id
  463.    1 × SELECT `DATA`
  464.      FROM `w0z9v_session`
  465.    1 × SELECT 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, c.version,
  466.      CASE WHEN CHAR_LENGTH(c.alias) != 0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug,COUNT(i.`id`) AS numitems
  467.      FROM w0z9v_categories as c
  468.      LEFT JOIN w0z9v_categories AS s
  469.      ON (s.lft <= c.lft
  470.      AND s.rgt >= c.rgt) OR (s.lft > c.lft
  471.      AND s.rgt < c.rgt)
  472.      LEFT JOIN (SELECT cat.id as id
  473.      FROM w0z9v_categories AS cat JOIN w0z9v_categories AS parent
  474.      ON cat.lft BETWEEN parent.lft
  475.      AND parent.rgt
  476.  
  477. OTHER Tables:
  478.  
  479.    1 × UPDATE `w0z9v_session`
  480.      SET `DATA` = '__default|a:8:{s:15:\"session.counter\";i:7;s:19:\"session.timer.start\";i:1373548759;s:18:\"session.timer.last\";i:1373549339;s:17:\"session.timer.now\";i:1373549350;s:22:\"session.client.browser\";s:72:\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\\0\\0\\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":24:{s:9:\"\\0\\0\\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:1:{i:0;s:1:\"9\";}s:5:\"guest\";i:1;s:13:\"lastResetTime\";N;s:10:\"resetCount\";N;s:10:\"\\0\\0\\0_params\";O:9:\"JRegistry\":1:{s:7:\"\\0\\0\\0data\";O:8:\"stdClass\":0:{}}s:14:\"\\0\\0\\0_authGroups\";a:2:{i:0;i:1;i:1;i:9;}s:14:\"\\0\\0\\0_authLevels\";a:3:{i:0;i:1;i:1;i:1;i:2;i:5;}s:15:\"\\0\\0\\0_authActions\";N;s:12:\"\\0\\0\\0_errorMsg\";N;s:10:\"\\0\\0\\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"a54201180514197c5fe6d1c16ab420b7\";}' , `TIME` = '1373549365'
  481.    1 × UPDATE w0z9v_categories
  482.      SET hits = hits + 1
Advertisement
Add Comment
Please, Sign In to add comment