11 Querries logged in total, but only error ones listed here.
Errors as listed below in more detail:
SELECT folder AS type, element AS name, params
FROM sl1_extensions
WHERE enabled >= 1
AND type ='plugin'
AND state >= 0
AND access IN (1,1,2,3,6)
ORDER BY ordering
Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE sl1_extensions ref extension extension 62 const 50 Using where; Using filesort
SELECT name
FROM sl1_bl_addons
WHERE published='1'
AND name='Payments'
Explain
Error
SQL=EXPLAIN SELECT name FROM sl1_bl_addons WHERE published='1' AND name='Payments'
SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid
FROM sl1_modules AS m
LEFT JOIN sl1_modules_menu AS mm
ON mm.moduleid = m.id
LEFT JOIN sl1_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 <= '2014-03-24 19:38:42')
AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2014-03-24 19:38:42')
AND m.access IN (1,1,2,3,6)
AND m.client_id = 1
AND (mm.menuid = 0 OR mm.menuid <= 0)
ORDER BY m.position, m.ordering
Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE m ALL PRIMARY,published,newsfeeds NO INDEX KEY COULD BE USED NULL NULL 15 Using where; Using filesort
1 SIMPLE mm ref PRIMARY PRIMARY 4 xxxxxxx_master.m.id 1 Using where; Using index
1 SIMPLE e ref element_clientid,element_folder_clientid element_clientid 303 xxxxxxx_master.m.module,const 1 Using where
SELECT a.*, SUM(b.home) AS home,b.language,l.image,l.sef,l.title_native
FROM sl1_menu_types AS a
LEFT JOIN sl1_menu AS b
ON b.menutype = a.menutype
AND b.home != 0
LEFT JOIN sl1_languages AS l
ON l.lang_code = language
WHERE (b.client_id = 0 OR b.client_id IS NULL)
GROUP BY a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native
Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE a ALL NULL NO INDEX KEY COULD BE USED NULL NULL 1 Using temporary; Using filesort
1 SIMPLE b ref idx_menutype idx_menutype 74 xxxxxxx_master.a.menutype 3 Using where
1 SIMPLE l eq_ref idx_langcode idx_langcode 21 xxxxxxx_master.b.language 1
SELECT m.id, m.title, m.alias, m.link, m.parent_id, m.img, e.element
FROM sl1_menu AS m
LEFT JOIN sl1_extensions AS e
ON m.component_id = e.extension_id
WHERE m.client_id = 1
AND e.enabled = 1
AND m.id > 1
ORDER BY m.lft
Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE m ref PRIMARY,idx_client_id_parent_id_alias_language,idx_componentid idx_client_id_parent_id_alias_language 1 const 40 Using where; Using filesort
1 SIMPLE e eq_ref PRIMARY PRIMARY 4 xxxxxxx_master.m.component_id 1 Using where
Hope you can make something of this Edwin.
|