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