Долгий Sending Data
#39985542
Ссылка:
Ссылка на сообщение:
Ссылка с названием темы:
|
|
|
При профилировании запроса ( файл select.sql ) Sending Data занимает 10сек. хотя Limit присутствует.
Подскажите куда копать?
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19.
--
-- Структура таблицы `modx_site_tmplvar_contentvalues`
--
CREATE TABLE `modx_site_tmplvar_contentvalues` (
`id` int(10) UNSIGNED NOT NULL,
`tmplvarid` int(10) NOT NULL,
`contentid` int(10) NOT NULL,
`value` mediumtext NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Индексы таблицы `modx_site_tmplvar_contentvalues`
--
ALTER TABLE `modx_site_tmplvar_contentvalues`
ADD PRIMARY KEY (`id`),
ADD KEY `tmplvarid` (`tmplvarid`),
ADD KEY `contentid` (`contentid`),
ADD KEY `tv_cnt` (`tmplvarid`,`contentid`);
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78.
--
-- Структура таблицы `modx_site_content`
--
CREATE TABLE `modx_site_content` (
`id` int(10) UNSIGNED NOT NULL,
`type` varchar(20) NOT NULL DEFAULT 'document',
`contentType` varchar(50) NOT NULL DEFAULT 'text/html',
`pagetitle` varchar(255) NOT NULL,
`longtitle` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`alias` varchar(255) DEFAULT NULL,
`link_attributes` varchar(255) NOT NULL,
`published` tinyint(1) UNSIGNED NOT NULL,
`pub_date` int(20) NOT NULL,
`unpub_date` int(20) NOT NULL,
`parent` int(10) NOT NULL,
`isfolder` tinyint(1) UNSIGNED NOT NULL,
`introtext` text,
`content` mediumtext,
`richtext` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
`template` int(10) NOT NULL,
`menuindex` int(10) NOT NULL,
`searchable` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
`cacheable` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
`createdby` int(10) NOT NULL,
`createdon` int(20) NOT NULL,
`editedby` int(10) NOT NULL,
`editedon` int(20) NOT NULL,
`deleted` tinyint(1) UNSIGNED NOT NULL,
`deletedon` int(20) NOT NULL,
`deletedby` int(10) NOT NULL,
`publishedon` int(20) NOT NULL,
`publishedby` int(10) NOT NULL,
`menutitle` varchar(255) NOT NULL,
`donthit` tinyint(1) UNSIGNED NOT NULL,
`privateweb` tinyint(1) UNSIGNED NOT NULL,
`privatemgr` tinyint(1) UNSIGNED NOT NULL,
`content_dispo` tinyint(1) NOT NULL,
`hidemenu` tinyint(1) UNSIGNED NOT NULL,
`class_key` varchar(100) NOT NULL DEFAULT 'modDocument',
`context_key` varchar(100) NOT NULL DEFAULT 'web',
`content_type` int(11) UNSIGNED NOT NULL DEFAULT '1',
`uri` text,
`uri_override` tinyint(1) NOT NULL,
`hide_children_in_tree` tinyint(1) NOT NULL,
`show_in_tree` tinyint(1) NOT NULL DEFAULT '1',
`properties` mediumtext
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `modx_site_content`
--
ALTER TABLE `modx_site_content`
ADD PRIMARY KEY (`id`),
ADD KEY `alias` (`alias`),
ADD KEY `published` (`published`),
ADD KEY `pub_date` (`pub_date`),
ADD KEY `unpub_date` (`unpub_date`),
ADD KEY `parent` (`parent`),
ADD KEY `isfolder` (`isfolder`),
ADD KEY `template` (`template`),
ADD KEY `menuindex` (`menuindex`),
ADD KEY `searchable` (`searchable`),
ADD KEY `cacheable` (`cacheable`),
ADD KEY `hidemenu` (`hidemenu`),
ADD KEY `class_key` (`class_key`),
ADD KEY `context_key` (`context_key`),
ADD KEY `uri` (`uri`(333)),
ADD KEY `uri_override` (`uri_override`),
ADD KEY `hide_children_in_tree` (`hide_children_in_tree`),
ADD KEY `show_in_tree` (`show_in_tree`),
ADD KEY `cache_refresh_idx` (`parent`,`menuindex`,`id`);
ALTER TABLE `modx_site_content` ADD FULLTEXT KEY `content_ft_idx` (`pagetitle`,`longtitle`,`description`,`introtext`,`content`);
|
|