Czas zapytania: 60.27 ms Po ostatnim zapytaniu: 7.65 ms Pamięć zapytania: 0.025 MB Pamięć przed zapytaniem: 11.302 MB Zwróconych wierszy: 4
SELECT SUM(orderitem_quantity) as ordered, product_id
FROM ecenu_k2store_orderitems
WHERE product_id IN (15485, 15750, 16209, 15650, 16427, 15429, 15646, 15786, 16432, 15917, 15417, 16382, 16031, 16433, 15521, 16058, 15442, 15552, 16424, 16133, 16027, 16066, 16210, 16119, 15940, 16417, 16205, 16241, 16300, 16132, 15891, 15486, 15460, 15956, 15922, 16165, 15418, 16423, 15534, 16434, 16089, 16097, 15885, 16368, 15478, 15724, 16040, 16370, 15508, 15553, 16389, 15538, 15660, 16104, 15990, 15607, 16036, 15608, 15989, 16090, 16285, 15913, 15973, 15396, 16422, 15897, 15596, 15994, 16094, 15623, 16419, 15765, 15536, 16331, 15685, 15847, 15532, 15691, 16046, 15636, 15974, 15717, 15651, 16345, 16034, 16421, 15991, 15803, 15945, 15729, 16247, 16295, 16342, 15617, 16283, 16244, 16004, 16264, 15633, 15958, 15615, 15694, 16073, 16211, 15458, 16414, 16012, 15938, 15579, 16350, 16018, 16127, 15857, 16153, 16076, 16159, 15411, 15507, 15916, 15754, 15714, 16002, 15609, 15471, 15876, 16008, 16084, 15753, 15503, 15862, 15482, 15706, 15741, 15550, 15883, 16122, 16367, 15977, 16395, 16237, 16189, 16121, 16163, 16055, 16059, 15674, 16267, 16293, 15657, 16171, 15658, 15463, 15778, 16116, 16399, 16373, 15490, 15881, 15773, 16039, 15446, 15561, 15944, 16091, 15419, 15663, 16079, 15796, 16415, 15562, 15949, 16196, 15752, 16043, 15839, 15597, 16435, 16199, 15959, 15739, 16049, 15594, 15487, 15823, 16181, 16330, 15953, 15428, 15554, 15582, 15524, 15825, 15915, 15845, 15452, 15993, 15447, 16128, 15513, 15877, 15437, 16257, 16072, 15797, 16235, 15454, 15542, 16269, 16186, 16410, 16198, 16366, 16085, 16065, 15496, 15755, 15613, 15795, 16277, 15848, 16306, 16357, 15842, 15625, 15979, 16278, 16361, 16175, 15504, 16270, 15813, 15761, 15497, 15852, 16168, 15584, 15457, 16287, 15543, 16228, 16335, 16240, 15928, 15858, 15769, 15751, 16173, 15770, 15693, 16038, 16123, 15737, 15493, 16151, 15540, 15975, 15412, 15385, 15592, 16354, 15894, 15924, 15684, 16288, 15475, 16214, 16318, 16266, 15816, 16251, 16154, 16170, 16337, 16407, 16193, 15404, 16263, 16290, 15763, 15476, 15494, 16200, 16347, 15708, 16045, 16349, 16161, 16202, 16017, 15914, 15934, 15904, 15736, 16286, 15880, 15961, 15601, 16328, 15829, 15866, 16109, 15603, 15489, 16003, 15984, 15992, 16398, 16188, 15932, 15874, 15569, 15659, 15966, 15723, 16319, 16070, 15826, 16020, 16309, 15510, 15670, 16362, 16346, 16375, 15564, 15557, 16141, 15407, 16411, 16243, 15443, 15588, 15759, 15834, 15549, 15718, 15529, 15725, 15484, 16111, 16064, 15556, 16352, 16217, 15707, 16207, 16007, 16392, 16021, 16218, 15567, 15719, 15835, 15566, 15912, 15416, 15807, 16431, 16259, 16000, 16147, 15704, 16374, 15512, 15453, 15647, 15709, 15780, 15937, 15392, 16273, 15406, 15627, 15661, 15563, 15732, 16380, 15409, 15520, 15808, 15547, 15850, 16117, 15589, 16344, 15735, 15700, 15738, 16169, 16026, 16125, 15872, 15593, 15398, 16174, 16075, 16149, 16314, 16429, 15464, 15926, 15527, 15783, 16227, 15401, 15900, 15868, 15840, 15626, 16180, 15666, 15844, 15438, 16077, 15901, 15972, 15431, 16220, 16234, 15988, 16056, 16146, 16348, 15879, 15652, 16238, 16054, 16081, 15782, 16016, 16381, 15610, 15727, 15952, 16307, 16118, 15760, 15814, 16001, 15999, 15860, 15705, 15586, 15634, 15785, 16397, 15439, 15869, 15410, 16106, 16334, 16279, 15864, 15766, 15730, 15742, 16191, 15948, 15957, 16103, 16212, 15631, 16353, 15641, 15480, 16107, 15565, 16126, 15537, 15408, 16313, 15682, 16420, 16372, 15832, 15525, 16379, 16050, 15498, 15851, 15939, 15775, 16083, 16252, 15923, 15935, 15726, 15798, 16242, 15577, 16099, 16271, 16376, 15841, 16150, 15927, 15838, 15448, 15430, 16148, 16377, 15466, 15548, 15771, 16304, 15444, 15612, 15530, 15403, 16184, 15950, 15572, 15576, 15570, 16275, 15920, 16068, 15905, 15985, 16294, 15544, 16291, 16416, 16215, 15811, 16297, 15815, 15970, 15531, 16130, 16032, 16067, 15792, 16274, 15422, 15479, 16308, 16087, 15908, 15656, 15865, 16364, 15445, 15899, 16033, 15896, 15919, 15434, 15890, 15451, 16281, 15465, 15560, 15889, 15676, 16305, 16166, 15387, 16254, 15483, 16385, 15614, 15824, 15604, 15812, 16158, 15942, 16194, 15426, 15558, 15936, 15819, 15960, 15943, 16142, 16409, 16246, 15886, 15863, 16167, 15964, 16302, 15477, 16315, 16280, 16326, 16245, 16062, 15432, 15461, 15470, 15892, 16093, 15955, 16137, 16249, 15774, 15541, 16024, 15855, 16162, 15675, 15777, 15968, 16253, 15441, 16095, 15749, 15669, 15721, 15878, 15571, 16327, 15495, 15965, 15776, 16250, 15628, 16289, 16329, 16179, 15843, 15996, 15519, 16092, 16047, 16052, 16009, 16223, 16404, 16233, 16013, 15642, 16129, 16113, 16060, 15667, 16071, 15591, 15794, 16086, 15602, 15954, 16005, 16025, 15933, 15686, 15788, 16418, 16323, 15793, 15986, 16100, 16312, 16110, 16303, 16011, 15535, 15800, 15768, 15649, 15791, 15662, 16057, 16402, 15433, 16053, 15983, 15982, 16317, 15386, 16140, 15598, 15568, 16139, 15987, 15696, 15638, 16298, 15575, 16284, 15756, 15728, 16316, 15853, 16078, 15871, 15420, 16136, 15499, 15621, 15551, 15887, 16037, 16428, 16219, 15468, 15906, 15947, 16358, 15383, 15861, 15910, 16061, 15435, 15573, 15632, 16182, 16042, 16239, 15481, 15424, 16010, 15692, 15505, 15699, 15673, 15967, 15929, 15745, 15528, 15716, 15698, 16144, 15758, 16265, 16340, 15918, 16403, 15397, 15414, 16131, 16222, 15688, 15888, 15962, 15595, 16112, 16088, 15978, 16371, 15720, 15388, 15854, 15581, 15587, 15772, 16386, 16102, 15784, 16101, 16019, 15683, 15941, 15846, 15740, 16292, 16324, 16351, 15787, 16301, 16225, 15643, 15606, 16185, 15402, 16262, 15671, 15833, 15648, 16320, 16236, 15711, 15963, 15898, 15757, 16082, 15817, 15400, 15837, 16029, 15611, 15997, 15394, 15836, 16325, 16022, 16044, 15583, 16204, 15526, 16014, 15801, 16272, 15995, 15488, 16096, 16041, 16190, 15703, 16152, 16260, 16216, 16023, 16248, 15856, 15555, 15462, 16187, 16393, 15806, 15822, 16080, 15599, 15399, 15762, 16426, 15390, 15637, 15672, 15747, 16336, 16115, 16413, 16356, 15546, 15701, 15665, 15695, 16359, 15893, 15849, 15875, 15502, 16051, 16048, 16299, 16383, 16321, 16388, 15930, 16261, 16063, 15580, 15689, 15715, 16406, 16322, 16201, 15799, 15585, 15655, 15722, 15644, 15450, 15809, 15653, 16124, 16390, 15523, 15622, 15804, 15828, 15859, 15467, 15702, 15925, 15405, 15712, 15618, 15743, 15902, 16369, 15559, 15744, 15506, 16120, 16006, 16401, 16332, 16341, 15909, 15630, 15423, 15867, 15805, 15436, 16030, 15511, 15472, 15382, 15449, 15664, 15895, 15533, 15654, 15969, 15681, 16400, 15831, 15620, 15545, 15384, 15395, 16035, 16408, 15734, 15459, 15619, 15981, 16157, 15802, 15640, 15605, 16178, 16143, 15539, 15635, 15911, 15616, 16138, 16206, 15624, 15884, 15491, 16164, 16363, 15509, 15873, 16232, 15518, 15668, 15413, 16394, 15645, 15781, 15415, 15514, 15980, 15690, 16430, 16339, 16311, 15790, 15821, 15921, 16355, 16145, 15677, 15578, 15421, 15473, 16183, 16176, 16224, 15907, 16203, 15455, 15882, 15820, 16213, 16226, 16192, 16105, 16360, 15713, 16268, 15687, 16229, 16160, 16255, 16098, 16177, 15600, 15469, 15425, 16108, 16114, 15515, 16405, 15629, 16172, 16343, 16135, 15678, 16338, 15998, 16015, 15731, 16282, 16197, 16074, 15697, 16156, 16276, 15391, 15680, 15830, 16155, 16230, 16412, 16231, 15931, 15827, 15574, 15517, 15516, 15590, 15679, 16365, 15903, 16296, 15779, 15818, 16391, 15789, 15501, 16069, 15710, 16195, 16028, 16310, 16396, 15393, 15427, 16425, 15764, 15976, 15522, 15639, 15746, 15492, 15440, 15951, 16378, 16258, 16221, 15971, 15389, 15748, 15733, 15946, 16256, 16384, 15456, 15810, 15767, 16333, 16387, 15474, 15870, 16134, 16208, 15500)
GROUP BY product_id
ORDER BY ordered DESC
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|
| 1 | PRIMARY | ecenu_k2store_orderitems | ALL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | 121033 | Using temporary; Uruchomiono metodę filesort |
| 1 | PRIMARY | <subquery2> | eq_ref | distinct_key | distinct_key | 4 | func | 1 | |
| 2 | MATERIALIZED | <derived3> | ALL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | 1054 | |
| 3 | DERIVED | NULL | NULL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | NULL | No tables used |
| Status | Duration |
|---|
| Starting | 0.37 ms |
| Checking permissions | 0.02 ms |
| Opening tables | 0.02 ms |
| After opening tables | 0.01 ms |
| System lock | 0.01 ms |
| Table lock | 0.01 ms |
| Init | 0.22 ms |
| Optimizing | 0.24 ms |
| Statistics | 0.03 ms |
| Preparing | 0.03 ms |
| Creating tmp table | 0.04 ms |
| Sorting result | 0.02 ms |
| Executing | 0.01 ms |
| Sending data | 0.20 ms |
| Removing tmp table | 0.01 ms |
| Sending data | 58.57 ms |
| Creating sort index | 0.04 ms |
| Removing tmp table | 0.01 ms |
| Creating sort index | 0.01 ms |
| End of update loop | 0.01 ms |
| Removing tmp table | 0.01 ms |
| End of update loop | 0.01 ms |
| Query end | 0.01 ms |
| Commit | 0.01 ms |
| Closing tables | 0.01 ms |
| Removing tmp table | 0.01 ms |
| Closing tables | 0.01 ms |
| Unlocking tables | 0.01 ms |
| Closing tables | 0.01 ms |
| Starting cleanup | 0.01 ms |
| Freeing items | 0.08 ms |
| Updating status | 0.03 ms |
| Reset for next command | 0.01 ms |
| # | Wywołujący | Plik i numer linii |
|---|
| 20 | JDatabaseDriverMysqli->execute() | JROOT/libraries/joomla/database/driver.php:1701 |
| 19 | JDatabaseDriver->loadObjectList() | JROOT/modules/mod_rrrk2_content/helper.php:569 |
| 18 | modrrrK2ContentHelper::getItemsOrderedInfo() | JROOT/modules/mod_rrrk2_content/helper.php:256 |
| 17 | modrrrK2ContentHelper::getItems() | JROOT/modules/mod_rrrk2_content/mod_rrrk2_content.php:64 |
| 16 | include JROOT/modules/mod_rrrk2_content/mod_rrrk2_content.php | JROOT/libraries/src/Helper/ModuleHelper.php:200 |
| 15 | Joomla\CMS\Helper\ModuleHelper::renderModule() | JROOT/templates/stacjabiuro2023/html/com_k2/templates/stacja-biuro/item.php:866 |
| 14 | include JROOT/templates/stacjabiuro2023/html/com_k2/templates/stacja-biuro/item.php | JROOT/libraries/src/MVC/View/HtmlView.php:701 |
| 13 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:230 |
| 12 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/components/com_k2/views/item/view.html.php:521 |
| 11 | K2ViewItem->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:664 |
| 10 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/components/com_k2/controllers/controller.php:19 |
| 9 | K2Controller->display() | JROOT/components/com_k2/controllers/item.php:74 |
| 8 | K2ControllerItem->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:702 |
| 7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/components/com_k2/k2.php:64 |
| 6 | require_once JROOT/components/com_k2/k2.php | JROOT/libraries/src/Component/ComponentHelper.php:402 |
| 5 | Joomla\CMS\Component\ComponentHelper::executeComponent() | JROOT/libraries/src/Component/ComponentHelper.php:377 |
| 4 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:194 |
| 3 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:233 |
| 2 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:225 |
| 1 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/index.php:53 |