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